xsl attribute value(pre order and post order)
Posted: Wed Apr 06, 2005 5:59 pm
Hi all,
I have a small problem on xsl..i need to design an xsl stylesheet to output one line for each element, in preorder and postorder, which contains the id values for the element and its successor and predecessor.
thanks
I have a small problem on xsl..i need to design an xsl stylesheet to output one line for each element, in preorder and postorder, which contains the id values for the element and its successor and predecessor.
Code: Select all
<!DOCTYPE document (View Source for full doctype...)>
- <document id="d">
- <chapter id="dc1">
- <section id="dc1s1">
<topic id="dc1s1t1" />
<topic id="dc1s1t2" />
</section>
- <section id="dc1s2">
<topic id="dc1s2t1" />
<topic id="dc1s2t2" />
</section>
</chapter>
- <chapter id="dc2">
- <section id="dc2s1">
<topic id="dc2s1t1" />
<topic id="dc2s1t2" />
</section>
- <section id="dc2s2">
<topic id="dc2s2t1" />
<topic id="dc2s2t2" />
</section>
</chapter>
</document>