Subject: Re: [xsl] How do I do this? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 21 Aug 2002 17:44:38 -0400 |
Oh yeah, xsl:number :) But I think he wants numbering to start at zero.
By the way, why does adding format="{{1}}" produce the number enclosed in
single curly braces unless the number is 0, while format="{1}" seems to be no
different than format="1"? format="[1]" works as expected, so what rule in the
spec am I overlooking?
And why is <xsl:number/> treated differently than <xsl:number value="position()"/> (at least with Saxon)? I thought value="position()" was the default.
The spec says "If no value attribute is specified, xsl:number determines a sequence number based on the position of the curent node in the source document", which I think is rather ambiguous since a current node has no position except with respect to the current node list. XSLT 2.0 currently says "...based on the position of the context node within its containing document" which is no more helpful.
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How do I do this?, Mike Brown | Thread | Re: [xsl] How do I do this?, David N Bertoni/Camb |
Re: [xsl] trying to set a parameter, Noel Golding | Date | RE: [xsl] trying to set a parameter, Dion Houston |
Month |