[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Request for help with XSL: how to produce uniquenumbers for all id's
Taro Ikai wrote: > Because of the way XSLT recurses, this ends up assigning the > depth of each element within the XML document, relative to root, > instead of a sequence number to call. > > XSL does not provide for a global variable that changes. > > How can I assign a unique number to each of my block elements with @id's? You can utilize <xsl:number/> instruction for this purpose. Try <xsl:number count="*[@id][not(processing-instruction('dbhh'))]" level="any"/> Jirka -- ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
S/MIME Cryptographic Signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]