I'm getting teh above error with the following error indication:
The following (from http://www.hide-link.com/ ) seems to indicate this should be possible:
I dont suppose the MS DOM is based on the Saxon processor
Consider the example below where a top-level variable (the only variables that can be referenced in template match expressions), parameterized from the command line, is used to match only those elements named by the operator invoking the stylesheet.
Note that while variables cannot be used as a node test in a location step, they can be used in a predicate.
Interestingly, Saxon gives an error on this stylesheet that works fine with XT. I think Saxon is in error here because XSLT [5] allows predicates in match patterns. < xml version="1.0" >
: <xsl:param name="which"/> <!--require the operator to specify-->
: <!--only interested in the ones indicated by the operator-->
<xsl:template match="*[name(.)=$which]" priority="1">
<xsl:value-of select="."/>
</xsl:template>
<!--eat all other output-->
<xsl:template match="*|text()" priority="0"/>
</xsl:stylesheet>
.NET Development3
|