Subject: RE: [xsl] Proper syntax for counting all prior nodes in XPath? (revised) From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Tue, 12 Jun 2001 19:06:45 +0100 |
> How can my XSL count all the preceding nodes within the same > chapter? The simplest way is probably xsl:number <xsl:variable name="count"> <xsl:number level="any" count="*"/> </xsl:variable> Or you can probably do it with XPath, by adding a condition [generate-id(ancestor::chapter) = generate-id(current()/ancestor::chapter)] Mike Kay > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Proper syntax for counting al, Jason Morris | Thread | using EXSLT {RE: [xsl] date calcula, B. Tommie Usdin |
[xsl] Proper syntax for counting al, Jason Morris | Date | using EXSLT {RE: [xsl] date calcula, B. Tommie Usdin |
Month |