[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Variables in match expressions
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@xxxxxxxxxxxx>: > > > > 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|