This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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