Subject: Re: [xsl] Node selection list From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 20 Feb 2004 23:49:02 GMT |
<xsl:template match="ITEM"> so here the current node is ITEM <xsl:value-of select="count(ITEM)"/> and here you are counting the number of child elements called ITEM which is zero. You probably want xsl:number or 1 +count( preceding-sibling::ITEM) or 1+count(receding:-sibling:ITEM)+count(../preceding-sibling::PARA0[TITLE!='Raging River']/ITEM) , but I cannot set the number attribute "count" or "from" with the condition "not(string(ancestor::PARA0/TITLE)='Raging River ')" you don't want to number a condition you want to number elements on which that condition is true so use ITEM[not(......)] also if you know PARA0 is teh parent of ITEM, use parent:: rather than ancestio:: it's a lot kinder to th esystem. -- http://www.dcarlisle.demon.co.uk/matthew XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Node selection list, tsterlin | Thread | [xsl] Re: Re: Node Selection List, tsterlin |
RE: [xsl] #Please Help: Nested cond, Andreas L. Delmelle | Date | Re: [xsl] Merging multiple XHTML do, Justin Akehurst |
Month |