On 10/3/05, aaron apigo <aaronjose_apigo2001(_at_)yahoo(_dot_)com> wrote:
Hi All,
Got another question regarding the preceding node.
with this input file,
<xml>
<a>
<b>
<c>Level 1</c>
</b>
</a>
<d/>
<e/>
<a>
<b>
<a>
<b>
<c>Level 2</c>
</b>
</a>
</b>
</a>
<d/>
<e/>
<a>
<b>
<c>Level 1</c>
</b>
</a>
..........
</xml>
i want to output like this
<xml>
<sections>
<section>
<label>1</label>
<title>Level 1</title>
<d/>
<e/>
<section>
<label>1.1</label>
<title>Level 2</title>
<d/>
<e/>
</section>
</section>
<section>
<label>2</label>
<title>Level 1</title>
<d/>
<e/>
</section>
</sections>
</xml>
i hope that with this data, you understand my point.
Well, a few sentences might speed things up :)
Have a look at <xsl:number> and use it generate the content for <label>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--