Re: [xsl] help in xslt2 grouping

Subject: Re: [xsl] help in xslt2 grouping
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 06 Jul 2007 14:33:54 +0200
alex v. wrote:

I need to group in XSLT2 'elem' that have a child 'title'.
The XML is:

<root>
<elem><title>row1</title></elem>
<elem>row2</elem>
<elem><title>row3</title></elem>
<elem><title>row4</title></elem>
<elem>row5</elem>
<elem>row6</elem>
</root>


and the result:


<root>
<elem>
 <title>row1</title>
 <content>row2</content>
</elem>
<elem>
 <title>row3</title>
 <content>row4</content>
 <content>row5</content>
</elem>
</root>

What happens to <elem>row6</elem>, why is that not copied to the output?


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread