extract a namespace attribute from elements of xml

If you want to know in what namespace the AppHdr element is, you can use:

<xsl:value-of select="namespace-uri(/Messages/*[local-name()='AppHdr'])"/>

Note that the expression:


will select all namespaces that are in-scope for the AppHdr element – and in XSLT 1.0 the xsl:value-of instruction will return the string-value of only the first node of the selected node-set.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top