xsl-list
[Top] [All Lists]

Re: Numbering non-contiguous nodes

2003-12-03 13:35:55
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(_at_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>