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

[no subject]

From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 25 Nov 2003 15:50:17 GMT
[no subject]
  I have the following line in my xslt file:

  <xsl:sort select="MIB[@name=&quot;{$sortby}&quot;]"  order="{$sortorder}" />

 The syntax { ...} is _never_ valid in an XPath expression (the only
 time { or } can appear in an expression is as part of a string, where
 they are just normal characters with no special meaning.

You are testing if the name attribute is equal to the literal string
"{$sortby}".

You want

select="MIB[@name=$sortby]"  

to test if the name attribute has value equal to the param sortby.



David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


Current Thread
  • [no subject]
    • Amir Yiron - Tue, 25 Nov 2003 10:29:46 -0500 (EST)
      • David Carlisle - Tue, 25 Nov 2003 11:13:09 -0500 (EST) <=

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.