|
Subject: [xsl] How do you count nesting level From: J S Publications <admin@xxxxxxxxxx> Date: Mon, 08 Oct 2001 11:19:19 +0100 |
<collection> <section> <title>1</title> <title>2</title> </section> <section /> <section> <title>3</title> <title>4</title> <section> <title>5</title> </section> </section> </collection>
<xsl:template match="title" mode="DoIt"> <xsl:param name="Depth" select="count(ancestor::*[section])" /> <xsl:value-of select="$Depth" /> <xsl:apply-templates mode="DoIt" /> </xsl:template>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] interoperable use of xml tech, cutlass | Thread | Re: [xsl] How do you count nesting , David Carlisle |
| Re: [xsl] Convert xml to PDF, Jörg Heinicke | Date | Re: [xsl] How do you count nesting , David Carlisle |
| Month |