You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Joona Palaste <jo...@dmm.fi> on 2004/02/09 11:59:48 UTC
XSLT repetition question
Suppose I have an XML document like this:
<document>
<node>1</node>
<node>2</node>
<node>3</node>
<node>4</node>
<node>5</node>
<node>6</node>
<node>7</node>
<node>8</node>
</document>
I wish to use XSLT repetition to group the nodes into 4 group nodes
with 2 subnodes each, so the output will be like this:
<document>
<group>
<node>1</node>
<node>2</node>
</group>
<group>
<node>3</node>
<node>4</node>
</group>
<group>
<node>5</node>
<node>6</node>
</group>
<group>
<node>7</node>
<node>8</node>
</group>
</document>
Is this possible with an XSLT stylesheet?
Joona Palaste
joona.palaste@dmm.fi