I might be doing something stupid here, I'm sure there is an easier way ... I need to access the node namespace. The elements in my xml are as follows:
<somenamespace:element name="SomeName">
Then in my xslt I access these elements with:
<xsl:template match="*[local-name()='element']"> <xsl:variable name="nodename"> <xsl:value-of select="local-name(current())"/> </xsl:variable> <xsl:choose> <xsl:when test="contains($nodename,':')">
Well, of course, this will not work, because there is no "somenamespace" namespace, even matching the pattern ...
Can someone guide me what I'm looking for?
aurel source share