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

RE: Outer Loop and Inner Loop

Subject: RE: Outer Loop and Inner Loop
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 2 May 2003 22:38:43 +0100
network outer loop inner loop
> > <xsl:value-of select="[@ = '$some_variable']"/>
> > 
> > Does that work?
> > 
> 
> It would be faster to try it than to ask. In this case, what 
> you want is
> 
> <xsl:value-of select="[@ = $some_variable]"/>
> 
> (assuming, of course, that the variable really evaluates to 
> the string that you want).
> 
> Cheers,
> 
> Tom P
> 

You're having an off day, Tom. You've only corrected one of his four
errors. 

The other three are:

* You can't use a predicate (an expression in square brackets) on its
own
* @ needs to be followed by a NodeTest
* "=" always does a comparison of the value of a node, not its name or
its identity.

Michael 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.