[xsl] Grouping

Subject: [xsl] Grouping
From: "Tevoi Andrea" <tevoi@xxxxxx>
Date: Mon, 24 Mar 2003 09:27:35 +0100
Hi all,

I have this xml:

<root>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
	<child></child>
</root>

and i have to write an xsl that gives this output:

<?xml version="1.0" encoding="UTF-8"?>
<root>
	<parent>
		<child></child>
		<child></child>
	</parent>
	<parent>
		<child></child>
		<child></child>
	</parent>	
	<parent>
		<child></child>
		<child></child>
	</parent>	
	<parent>
		<child></child>
		<child></child>
	</parent>
	<parent>
		<child></child>
		<child></child>
	</parent>
</root>

that is a grouping of 2 child, but this number is not a constant, instead it is a parameter.



thanks in advance,

Andrea Tevoi

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread