[xsl] reorder child nodes

Subject: [xsl] reorder child nodes
From: ratna ratna <ratna.xsl@xxxxxxxxx>
Date: Mon, 12 Apr 2010 09:41:13 -0500
Hi list

I have a question. I have a source xml with nodes which need to be
reordered before transformation.

<books>
<book>
<fiction></fiction>
<drama></drama>
<bio></bio>

</book>

</books>

I want the output to look like



<books>
<book>

<bio></bio>
<fiction></fiction>
<drama></drama>
</book>

</books>

Can I do that in XSLT? Or should I be looking at Java DOM?


Thanks!

Current Thread