[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

Subject: Re: Sorting an unsorted list of (xml) children and packing them into rows
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Nov 2001 13:57:11 GMT
sort xml nodes using children
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


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.