xsl-list
[Top] [All Lists]

RE: [xsl] Is it possible to create xsl:sort from input parameters using XSLT 2.0

2006-07-31 09:23:20
... how stupid do I feel =o/

Seriously thought thanks for spotting that it seems to work quite well now. 


Nick



-----Original Message-----
From: Colin Adams [mailto:colinpauladams(_at_)hotmail(_dot_)com]
Sent: 31 July 2006 17:17
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Is it possible to create xsl:sort from input
parameters using XSLT 2.0


It looks like you have simply missed out SortFields in your XPath

From: Nick Glenister <NGlenister(_at_)Moneyfacts(_dot_)co(_dot_)uk>

One of the parameters I pass is:

<xsl:param name="sortField"/>

And into this param i pass the XML:

<SortFields>
      <SortField>
              <Sort>lendername</Sort>
              <Order>ascending</Order>
              <DataType>text</DataType>
              <CaseOrder>lowercasefirst</CaseOrder>
      </SortField>
</SortFields>


rather than use 12 parameters (four for each <xsl:sort/>), I had hoped that
using this XML I would be able to read the values out like so:

      <xsl:sort select="$sortField/SortField[1]/Sort"
order="{$sortField/SortField[1]/Order}"/> (and so on for the data-type and
caseorder)


As far as I can tell the order attribute should read "acsending" out of the
XML but I've no real way of finding out what it is reading.

thanks


Nick


-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: 31 July 2006 17:01
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Is it possible to create xsl:sort from input
parameters using XSLT 2.0 (Saxon)?



    {"order must be 'ascending' or 'descending'"}
it may be an AVT evaluating to either of those, so presumably in your
case $sortField/SortField[1]/Order evaluates to something else
(such as "" ?) what's your definition of  $sortField

David


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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(_at_)moneyfacts(_dot_)co(_dot_)uk

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(_at_)moneyfacts(_dot_)co(_dot_)uk 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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


_________________________________________________________________
Windows Live(tm) Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [xsl] Is it possible to create xsl:sort from input parameters using XSLT 2.0, Nick Glenister <=