How can I get the value of an attribute called xlink:href
of an xml node in xsl template?
I have this xml node:
<DCPType>
<HTTP>
<Get>
<OnlineResource test="hello" xlink:href="http://localhost/wms/default.aspx"
xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" />
</Get>
</HTTP>
</DCPType>
When I try the following xsl, I get an error saying "Prefix 'xlink' is not defined." :
<xsl:value-of select="DCPType/HTTP/Get/OnlineResource/@xlink:href" />
When I try this simple attribute, it works:
<xsl:value-of select="DCPType/HTTP/Get/OnlineResource/@test" />