I'm propably doing something stupid here, I bet there is an easier way... I need to access namespace of a node. Elements in my xml looks for example like this:
<somenamespace:element name="SomeName">
Then in my xslt I access this 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 it doesn't work, because there is no "somenamespace" namespace even in template match...
Can anyone guide me, what am I looking for?