Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7918479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:31:32+00:00 2026-06-03T15:31:32+00:00

My input XML is as follows: <SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/> <SOAP-ENV:Header> <ns0:PartyInfo xmlns:ns0=http://www.google.com/> <name xmlns=>John</name> </ns0:PartyInfo>

  • 0

My input XML is as follows:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
        <ns0:PartyInfo xmlns:ns0="http://www.google.com/"> 
             <name xmlns="">John</name> 
        </ns0:PartyInfo> 
    </SOAP-ENV:Header>

    <SOAP-ENV:Body>
        <ns0:OperationRequest xmlns:ns0="http://www.yahoo.com"> 
            <name xmlns="">Mary</name> 
        </ns0:OperationRequest>
    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

1) First problem: in my XSLT, I can only declare on value for my “ns0” namespace, so I can only access one of the nodes. How can I access them both (preferably in the same xslt file)?

2) Suppose I declare

xmlns:ns0="http://www.google.com"

Then the “John” string is output with extra characters:

enter image description here

I can use normalize-space to fix this, but it doesn’t seem right.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:31:33+00:00Added an answer on June 3, 2026 at 3:31 pm

    The namespace prefix you use in the XSLT code doesn’t have to be the same as the prefix used in the source document. It’s only the URI that needs to match. So in your XSLT, simply bind different prefixes to the two namespace URIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an input xml as follows, <?xml version=1.0 encoding=utf-8 ?> <?xml-stylesheet type=text/xsl href=cdcatalog.xsl?>
My input.xml is as follows: <root> <Property> <info> <Name>A</Name> <Value>1000</Value> </info> <info> <Name>B</Name> <Value>2000</Value>
My input XML consists of the following, <root> <entry> <type>U</type> <value>111</value> </entry> <entry> <type>X</type>
The input XML tag must be validated for a pattern which is like this:
i have input xml as <content> <date> <day>14</day> <month>06</month> <year>2012</year> </date> </content> want it
This is my input xml. The xml can have maximunm three nodes and minimum
My sample input XML is: <root> <a> <b>item</b> <b>item1</b> <b>item2</b> <b>item3</b> <b>item4</b> </a> </root>
This is my input xml: <root> <node1/> <node2/> <node3/> <node4/> <othertags/> </root> The output
Given the input XML file: <acctInfo> <wfInfo> <aaa>1</aaa> <bbb>1</bbb> <ccc>1</ccc> <ddd>1</ddd> <eee>1</eee> </wfInfo> <acctInfo>
I have the following input XML: <root age=1> <description>some text</description> <section> <item name=a> <uuid>1</uuid>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.