Subject: RE: [xsl] XQuery 1.0 and XPath 2.0 Functions and Operators Versio n 1.0 From: DPawson@xxxxxxxxxxx Date: Fri, 7 Sep 2001 10:41:10 +0100 |
Mike Kay wrote: > The basic idea of having sequences in the data model rather > than sets is > that the result of sorting a node-set can be assigned to a variable, > something which isn't possible in XSLT 1.0. There are then > mechanisms for > iterating over a sequence or indexing into it. Does that mean that the functions listed in the sequences part is also viable for node-sets? > > > Unsure if xf:value-distinct does this or not, it appears to work on > > 'sequences' (which I guess includes node-sets?), and determines > > uniqueness by element content? Given an example > > <cat> > > <head>...</head> > > <content>... </content> > > <other elements .... > > </cat> > > as the 'sequence' would it sort on the concat of head, content etc, > > or is that what the optional 'collation' is for? > > > Not really. The collation is for sorting strings. Deriving a > string to act > as the sort key of a node, when sorting nodes, is a different problem. In which case I think the same function should be available for node-sets. Regards DaveP ************8 snip here ************* - NOTICE: The information contained in this email and any attachments is confidential and may be legally privileged. If you are not the intended recipient you are hereby notified that you must not use, disclose, distribute, copy, print or rely on this email's content. If you are not the intended recipient, please notify the sender immediately and then delete the email and any attachments from your system. RNIB has made strenuous efforts to ensure that emails and any attachments generated by its staff are free from viruses. However, it cannot accept any responsibility for any viruses which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XQuery 1.0 and XPath 2.0 , Jim Melton | Thread | RE: [xsl] XQuery 1.0 and XPath 2.0 , Michael Kay |
RE: [xsl] IE6, Rene de Vries | Date | RE: [xsl] IE6, Chris Bayes |
Month |