This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: "position in source tree" vs. "context position"
- To: xsl-list at mulberrytech dot com
- Subject: Re: "position in source tree" vs. "context position"
- From: James Clark <jjc at jclark dot com>
- Date: Mon, 24 Apr 2000 10:46:33 +0700
- References: <01BA10F0CD20D3119B2400805FD40F9F2788BF@MDYNYCMSX1>
- Reply-To: xsl-list at mulberrytech dot com
"DuCharme, Robert" wrote:
> this template rule
>
> <xsl:template match="li">
> <xsl:number format="1. "/>
> <xsl:apply-templates/>
> </xsl:template>
>
> turns the same input into this:
>
> 1. first item
> 2. second item
> 3. third item
That's because the default for the count attribute on xsl:number (which
determines what is counted) is "the pattern that matches any node with
the same node type as the current node and, if the current node has an
expanded-name, with the same expanded-name as the current node".
James
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list