[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 25 Nov 2003 15:50:17 GMT |
I have the following line in my xslt file: <xsl:sort select="MIB[@name="{$sortby}"]" 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], Amir Yiron | Thread | [xsl] Proper use of AVTs (was RE: (, Martinez, Brian |
[no subject], Amir Yiron | Date | [xsl] Proper use of AVTs (was RE: (, Martinez, Brian |
Month |