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

RE: Matching attributes that contain both &pos; and "

Subject: RE: Matching attributes that contain both &pos; and "
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 12 Sep 2000 10:57:56 +0100
RE: Matching attributes that contain both &pos; and &quot;
> >To prevent circularity. Consider:
> 
> ><xsl:variable name="preferred">
> >   <xsl:call-templates select="get-preferred"/>
> ></xsl:variable>
> 
> ><xsl:template name="get-preferred">
> >   <xsl:apply-templates select="//item" mode="get"/>
> ></xsl:template>
> 
> ><xsl:template match="item[$preferred]" mode="get">
> >   <xsl:value-of select="."/>
> ></xsl:template>
> 
> Forgive me, but I'm a bit confused - how is this circular?

To evaluate the variable, you need to find the template rule that matches a
particular item element, but you can't tell whether the rule matches until
you know the value of the variable.

Mike Kay 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.