xsl-list
[Top] [All Lists]

Re: Pick up generated numbering for cross reference using key?

2005-03-22 07:14:14
Cas Tuyn wrote:
It can be calculated I think. I had great dificulty writing:

'Count the number of tables in the current section only, before the table with <table id="csrh026a.dia-6"> , and add 1', from within the xref xslt declaration. Should that be something like:

You can use <xsl:number/> for getting number of current node. You can change current node with xsl:for-each trick or better create template in separate mode for generating cross-references.

<xsl:for-each select="id('csrh026a.dia-6')">
  <xsl:number count="table" from="section" level="any"/>
</xsl:for-each>

                                Jirka

--
------------------------------------------------------------------
  Jirka Kosek     e-mail: jirka(_at_)kosek(_dot_)cz     http://www.kosek.cz
------------------------------------------------------------------
  Profesionální školení a poradenství v oblasti technologií XML.
     Podívejte se na náš nově spuštěný web http://DocBook.cz
       Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

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

<Prev in Thread] Current Thread [Next in Thread>