[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Variables in match expressions

Subject: Re: Variables in match expressions
From: "António Mota" <amsmota@xxxxxxxxx>
Date: Thu, 20 Apr 2006 16:31:25 +0100
match expres
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.