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

RE: ordering nodes

Subject: RE: ordering nodes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 30 Jan 2006 11:05:10 -0000
RE:  ordering nodes
> > P.S. I'm using cocoon 2 processor
> 
> I'm not familiar with the cocoon 2 processor, but if it's an XSLT 2.0
> processor you can use:
> 
> <xsl:for-each select="for $x in
> collection('pathToXMLDirectory?select=*.xml;recurse=yes;on-error=warn')
> 			return $x//defnition">
>   <xsl:sort select="youdidntsay"/>
> 

I'm not sure what the current position is regarding using Saxon under
cocoon; however, you need to be aware that the above depends not just on
XSLT 2.0, but on Saxon, since the interpretation of the URI passed to the
collection() function is implementation-defined. With luck other processors
will imitate this syntax, but it's not in the spec.

Michael Kay
http://www.saxonica.com/

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.