[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: Nick Glenister <NGlenister@xxxxxxxxxxxxxxxx>
Date: Mon, 31 Jul 2006 17:30:02 +0100
RE:  Is it possible to create xsl:sort from input  para
=o)

Thanks for the help, I'm having a bad Monday.

$sortField is a document node and SortFields was being missed out.

I had never considered trying [<xsl:value-of select="$sortField"/>], so
simple...

Thanks for everyones help. I'm going home now.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 31 July 2006 17:24
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Is it possible to create xsl:sort from input
parameters using XSLT 2.0 (Saxon)?



> 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.

David



This inbound message has been scanned for viruses by MailControl for
Moneyfacts Group plc.


The Investment, Life & Pensions Annual Awards Lunch 2006 will take place on Wednesday 20th September at The Brewery, Chiswell Street, London. To book your table or for more information, contact Miranda Siliprandi on 0870 2250 491 or email msiliprandi@xxxxxxxxxxxxxxxx

The Moneyfacts 11th Annual Conference takes place on Tuesday 7th November 2006 at the Shaw Centre, Novotel Euston London in association with our Platinum Sponsors, CACI. For sponsorship and general enquires please email Anne Joyce at ajoyce@xxxxxxxxxxxxxxxx or to reserve your place, call our ticket hotline on 0870 2250 100.

E-mail Disclaimer: This e-mail message contains confidential information and is intended only for the individual entity or organisation named. If you are not the named addressee you should not disseminate, distribute, print or copy this e-mail and/or attachments (either whole or partial). To do so may constitute a breach of confidence and/or privilege. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail permanently from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, maliciously altered, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Please note that any views or opinions presented in this e-mail are !
 those of the author and do not necessarily represent those of Moneyfacts Group plc or their affiliates. Whilst every step is taken to ensure e-mails are virus free when they leave Moneyfacts Group systems, we accept no liability for any damage caused by any virus received.   This outbound message has been scanned for viruses by MailControl for Moneyfacts Group plc.  

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.