I'm attempting to load an xsl file into the DOM ("MSXML2.DOMDocument.4.0"
and modify the "select" attribute on a <xsl:sort/> node like this:
Set objSortNode = xslObj.documentElement.selectSingleNode("//xsl:sort"
I'm getting the following error:
"Reference to undeclared namespace prefix: 'xsl'"
Here is my stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/">
<!-- do stuff here -->
</xsl:template>
</xsl:stylesheet>
I am declaring the namespace so why am I getting this error?
Set objSortNode = xslObj.documentElement.selectSingleNode("//xsl:sort"
I'm getting the following error:
"Reference to undeclared namespace prefix: 'xsl'"
Here is my stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/">
<!-- do stuff here -->
</xsl:template>
</xsl:stylesheet>
I am declaring the namespace so why am I getting this error?