Altova Mailing List Archives

get namaspaces for element

From: Tommy Frost <thobr@--------.-->
Date: 2/6/2004 1:04:00 AM

I'm trying to figure out the xpath-expression for getting all relevant 
namespaces of an element, but I don't wangle it.

When I have this document:

<A xmlns1>
  <B xmlns2></B>
  <C xmlns3>

...I need an expression which gives me the namespaces for <D>, that is 
xmlns1 xmlns3

or even better, an expression which has the result
<D xmlns1 xmlns2>xxx</D><E></E>

BTW I'm not using xpath within xsl...I just need the plain expression.



These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.