← Prev in month
← Prev in thread
Next in thread →
Next in month →
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:
http://www.kosek.cz
← Prev in month
← Prev in thread
Next in thread →
Next in month →