Currently I'm defining a variable in my XSLT 1.x file like this:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns1="http://ns.hr-xml.org" >
...
<xsl:variable name="my_var" select="ns1:RootNode/ns1:Node[3]/ns1:Title" />
Is there a way so that I can somehow define ns1: namespace to be always used so that I could possibly write my variable like this:
<xsl:variable name="my_var" select="RootNode/Node[3]/Title" />
xpath-default-namespaceto do this.*[local-name() = 'RootNode']but this would match all namespaces, not just the required one, and isn't really a good solution anyway.