[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Numbering non-contiguous nodes


Subject: Re: [xsl] Numbering non-contiguous nodes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 03 Dec 2003 15:35:55 -0500

Erik,

At 12:47 PM 12/3/2003, you wrote:
I'm looking for the simplest and most elegant solution to a node
numbering problem....

Any and all suggestions will be greatly appreciated.

I suggest the XSLT instruction <xsl:number/>


<xsl:template match="gap">
  <xsl:text>[_</xsl:text>
  <xsl:number level="any"/>
  <xsl:text>_]</xsl:text>
</xsl:template>

Cheers,
Wendell


====================================================================== 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




Current Thread
Keywords