[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] A challenge.. Group Periods of Data (1..5, 2..8, 4..9) (10..12; 10..14)
Subject: [xsl] A challenge.. Group Periods of Data (1..5, 2..8, 4..9) (10..12; 10..14) From: Karl Stubsjoen <kstubs@xxxxxxxxx> Date: Tue, 3 May 2005 13:16:22 -0700 |
A challenge, group the following XML into 2 periods. The periods are arbitrary, but for this example they happen to be: Period 1: 1 - 12 Period 2: 14 - 30 Expected Result: <result> <period begins="1" ends="12"> <B period_begin="1" period_end="5"/> <B period_begin="2" period_end="7"/> <B period_begin="3" period_end="10"/> <B period_begin="4" period_end="12"/> </period> <period begins="14" ends="30"> <B period_begin="14" period_end="16"/> <B period_begin="16" period_end="20"/> <B period_begin="16" period_end="30"/> </period> </result> Source XML / Result (sorted) <A> <B period_begin="1" period_end="5"/> <B period_begin="2" period_end="7"/> <B period_begin="3" period_end="10"/> <B period_begin="4" period_end="12"/> <B period_begin="14" period_end="16"/> <B period_begin="16" period_end="20"/> <B period_begin="16" period_end="30"/> </A> Source XML / Result (un-sorted) <A> <B period_begin="14" period_end="16"/> <B period_begin="2" period_end="7"/> <B period_begin="16" period_end="20"/> <B period_begin="1" period_end="5"/> <B period_begin="4" period_end="12"/> <B period_begin="16" period_end="30"/> <B period_begin="3" period_end="10"/> </A>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL-FO / XSLT Transformat, David Carlisle | Thread | Re: [xsl] A challenge.. Group Perio, Wendell Piez |
RE: [xsl] EXSLT node-set function, Maria Amuchastegui | Date | Re: [xsl] XSL-FO / XSLT Transformat, craig webber |
Month |
Keywords