Subject: Re: "position in source tree" vs. "context position" From: James Clark <jjc@xxxxxxxxxx> Date: Mon, 24 Apr 2000 10:46:33 +0700 |
"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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
"position in source tree" vs. "cont, DuCharme, Robert | Thread | CR/EOL in XSL, Chatan Mistry |
poor IE5/XSL performance?, Alan Houser | Date | Re: Cascading ( Or processing twice, Paul Tchistopolskii |
Month |