Subject: RE: [xsl] xslt 2. index-of, nodes From: David.Pawson@xxxxxxxxxxx Date: Fri, 4 Jul 2003 08:54:26 +0100 |
Jeni said: > > <xsl:for-each-group select="loc" > > group-by="concat(@hl, '+', @side, '+', @pos)"> > > ... > > </xsl:for-each-group> except I can't. Error at xsl:for-each-group on line 54 of file:/C:/sgml/files/mu2.xsl: A sequence of more than one item is not allowed here I.e. I've got multiple instances of the right loc element... i.e. a group. I guess its the concat that's failing rather than the group-by? I'm beginning to think that Jeni's version would be a good addition to xslt 2. > Again, I haven't followed the thread, but note that the big difference > between these two constructs is that the value of position() is > different in the two cases. You get the same groups, but in the first > case they are "hierarchically" numbered, and in the second case, the > numbering is "flat". what do you mean by 'hierarchical' numbering please Mike? The number would only relate to the last group? e.g. if it was (imagining)1.2.6.4 I'd only get the 4 when asking for position() ? Is that it? regards DaveP - 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] xslt 2. index-of, nodes, Jeni Tennison | Thread | RE: [xsl] xslt 2. index-of, nodes, Michael Kay |
Re: [xsl] Re: Using XSLT to add mar, Dimitre Novatchev | Date | [xsl] Validating an xsl file., Simon Kelly |
Month |