W
walexand
Can someone help me! I'am trying to develope a XSTL that make me
automatic a "Table of Centens" from a XML Document.
my XLM File looks like this:
-------------------------------------
<section>
<title>Index1</title>
</section>
<section>
<title>Index2</title>
<section>
<title>Index21</title>
<section>
<title>Index211</title>
</section>
</section>
<section>
<title>Index22</title>
</section>
</section>
<section>
<title>Index3</title>
</section>
-------------------------------------
And a want to get this output:
-------------------------------------
<h2>Toc<h2>
<ol>
<li>Index1 </li>
<li>Index2
<ol>
<li>Index21
<ol>
<li>Index211</li>
</ol>
</li>
<li>Index22</li>
</ol>
</li>
<li>Index3</li>
</ol>
Alexander W. ([email protected])
automatic a "Table of Centens" from a XML Document.
my XLM File looks like this:
-------------------------------------
<section>
<title>Index1</title>
</section>
<section>
<title>Index2</title>
<section>
<title>Index21</title>
<section>
<title>Index211</title>
</section>
</section>
<section>
<title>Index22</title>
</section>
</section>
<section>
<title>Index3</title>
</section>
-------------------------------------
And a want to get this output:
-------------------------------------
<h2>Toc<h2>
<ol>
<li>Index1 </li>
<li>Index2
<ol>
<li>Index21
<ol>
<li>Index211</li>
</ol>
</li>
<li>Index22</li>
</ol>
</li>
<li>Index3</li>
</ol>
Alexander W. ([email protected])