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

Re: Is it possible to create xsl:sort from input para

Subject: Re: Is it possible to create xsl:sort from input parameters using XSLT 2.0 (Saxon)?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 31 Jul 2006 17:23:30 +0100
Re:  Is it possible to create xsl:sort from input  para
> And into this param i pass the XML

Ah, but there's the rub: is $sortField a document node (/) with child a
SortFields element, in which case $sortField/SortField[1] will select
nothing, or is it a SortFields element in which case
$sortField/SortField[1] will select something.

> but I've no real way of finding out what it is reading.

sure you have, remove the xsl:sort so the error goes away, then add
[<xsl:value-of select="$sortField"/>]
 or select="instance of $sortField element()" or anything else that may
be informative to the body of your loop.


Current Thread


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.
First Name
Last Name
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.