Reputation: 163
I have the following XML snippet
<aaa>
<bbb xmlns="http://net.some.address.com">
<ccc>123321</ccc>
</bbb>
</aaa>
And i want to select the value of <ccc>
with XSL template, but not able to get it by using
<xsl:value-of select="/aaa/bbb/ccc"/>
Any ideas how to get the value without changing the input ?
Upvotes: 2
Views: 383
Reputation: 338158
Declare the namespace and use it.
<xsl:value-of xmlns:a="http://net.some.address.com" select="/aaa/a:bbb/a:ccc"/>
a
.<xsl:stylesheet>
level, but as you can see, that's just a convention.Upvotes: 5