So i have to do like that,
<xsl:template match="*">
<xsl:if test="count(.|$snode)=1">
...
</xsl:if>
</xsl:template>
but isn't that a waste of processing? I'm matching all nodes when i
really want one specific known node.
Or is the processing of the "default" templates similar to this?
2006/4/20, Michael Kay <mike(_at_)saxonica(_dot_)com>:
In XSLT 2.0, you can start a pattern with an id() or key()
call, whose the value parameter can be a variable reference.
In XSLT 2.0 you can also use a variable reference within a predicate in a
match pattern.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--