|
Subject: [xsl] Nested <heading> levels inside <lev> From: Bubba O'Reily <killswi7ch1@xxxxxxxx> Date: Wed, 27 Apr 2011 11:37:17 -0400 |
I was able to achieve what I needed with nested <heading> within <lev> by
using
<xsl:value-of select="count(ancestor::lev)"/>
Input:
------
<lev>
<heading>Level 1</heading>
<lev>
<heading>Level 2</heading>
<lev>
<heading>Level 3</heading>
</lev>
<heading>Level 2</heading>
</lev>
<heading>Level 1</heading>
</lev>
</lev>
Output:
-------
<pStyle:hd1>Level 1
<pStyle:hd1>Level 2
<pStyle:hd1>Level 3
<pStyle:hd1>Level 2
<pStyle:hd1>Level 1
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSLT transformation using, Murray McDonald | Thread | RE: [xsl] Nested <heading> levels i, Bubba O'Reily |
| RE: [xsl] XSLT transformation using, Bubba O'Reily | Date | RE: [xsl] Nested <heading> levels i, Bubba O'Reily |
| Month |