Subject: Re: [xsl] Position of a Child From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 20 Sep 2001 14:58:24 -0400 |
<xsl:for-each select="*"> <xsl:if test="name()=$NodeName"> <xsl:value-of select="."/> <xsl:value-of select="position()"/> </xsl:if> </xsl:for-each>
Cheers, Wendell
I'm having problems getting the child's position() of the context node. I reference the child by its name (stored in a variable), like this:
<xsl:value-of select="*[name()=$NodeName]"/>
What I would like to get is the position of that child inside the context node.
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Position of a Child, Michael Kay | Thread | RE: [xsl] Position of a Child, Casadome, Francisco |
Re: [xsl] Position of a Child, Jörg Heinicke | Date | Re: [xsl] Multi-level lists, Wendell Piez |
Month |