xsl-list
[Top] [All Lists]

(unknown)

2003-11-25 08:50:17

  I have the following line in my xslt file:

  <xsl:sort select="MIB[(_at_)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[(_at_)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



<Prev in Thread] Current Thread [Next in Thread>
  • (unknown), Amir Yiron
    • (unknown), David Carlisle <=