[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Sorting an unsorted list of (xml) children and pac
first the easy one. > can I do a logical AND without having to nest <xsl:if>s? Some FAQs I understand, as some features of XSLT are maybe strange at first sight, but this one which seems to be coming up most days at the moment, although it was "or" last time rather than "and", I really don't. There must be something about the XPath spec why people don't spot this easily. the syntax for logical and is: and . > Does anyone have any suggestions? I think Jeni's site has some examples. Either you have to do something like you have or better if you don't mind using a node-set() extension function is first get all the nodes into a (sorted) list in a variable, then apply the more straight forward grouping templates to the node set you get by using select="xx:node-set($x)" where xx: is your processor's node-set extension function. (If you are using saxon you don't need node-set()) David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|