[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] grouping problem
Subject: Re: [xsl] grouping problem From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 17 Oct 2006 23:51:04 +0100 |
Could probably be made more efficient but... <xsl:template match="data"> <xsl:variable name="range" select="tokenize(range,',')"/> <xsl:for-each-group select="record" group-by="node/type"> <xsl:value-of select="' ',current-grouping-key(),':',$range[ some $e in current-group() satisfies position() >= index-of($range,$e/start) and position() <= index-of($range,$e/end) ]"/> </xsl:for-each-group> </xsl:template> </xsl:stylesheet> $ saxon8 range.xml range.xsl <?xml version="1.0" encoding="UTF-8"?> type1 : 0 2 4 5 6 7 type2 : 0 7 8 9 A B C D E F David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] grouping problem, SINGH Navpreet | Thread | RE: [xsl] grouping problem, SINGH Navpreet |
RE: [xsl] FW: grouping problem, Michael Kay | Date | [xsl] using contains() on multiple , Boge.Brett |
Month |