|
Subject: [xsl] reordering elements based on... From: Jorg Heymans <Jorg.Heymans@xxxxxxxxxx> Date: Thu, 24 Jul 2003 08:49:05 +0100 |
Hi list,
(This one is doing my head in)
Say I have following input doc (ordering of the parameter nodes can be
random)
<parameter name="start2">
<value>3000</value>
</parameter>
<parameter name="text2">
<value>texthere</value>
</parameter>
<parameter name="end2">
<value>4000</value>
</parameter>
<parameter name="end1">
<value>2000</value>
</parameter>
<parameter name="start1">
<value>1000</value>
</parameter>
The number suffix of the name attribute value in the parameter node should
be used as grouping.
I would like to get following structure.
<!- parameters with ending 1 grouped into one node-->
<element>
<end>2000</end>
<start>1000</start>
</element>
<!- parameters with ending 2 grouped into one node-->
<element>
<end>4000</end>
<text>texthere</text>
<start>3000</start>
</element>
Is this doable at all? Or am I abusing XSL for what it can/should do?
Regards
Jorg Heymans
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] XSL Dependency Mapping, David . Pawson | Thread | RE: [xsl] reordering elements based, Jarno . Elovirta |
| RE: [xsl] Creating xml files, David . Pawson | Date | RE: [xsl] reordering elements based, Jarno . Elovirta |
| Month |