This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Function position()


> Now I need in each StretchText-Node the number of itself.
> That means what is the number of the StretchText - node if I look at 
> the whole tree. So I can count  ALL Stretchtext-nodes from 1 to n.

Use either
<xsl:number level="any"/>
or
<xsl:value-of select="count(preceding::StretchText) + 1"/>

Mike Kay 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]