Subject: Re: [xsl] getting position of tag From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 15 Sep 2004 11:55:16 -0400 |
xsl:value-of select="count(/columns/column[source='B']/preceding-sibling::column) + 1"
<xsl:for-each select="/columns/column[source='B']"> <xsl:number/> </xsl:for-each>
I hope that helps, Wendell
Hi.
I have this problem:
XML: <columns> <column> <source>A</source> </column> <column> <source>B</source> </column> </xolumns>
I want to get position() of tag column, where source='B'.
I have tried xsl:value-of select="/columns/column[source='B']/position()" but it is bad.
Anyone help me?
====================================================================== 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 ======================================================================
--+------------------------------------------------------------------ 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@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] getting position of tag, Dusan Zatkovsky | Thread | RE: [xsl] getting position of tag, Andrew Welch |
Re: [xsl] dynamically applying temp, Wendell Piez | Date | Re: [xsl] XSLT Extensions using Sax, xptm |
Month |