XSLT: different values for same namespace

Frame

New Member
My input XML is as follows:\[code\]<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>\[/code\]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\[code\]xmlns:ns0="http://www.google.com"\[/code\]Then the "John" string is output with extra characters:
rgZGY.png
I can use normalize-space to fix this, but it doesn't seem right.
 
Back
Top