[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] preceeding template count
Nicolas Pillot wrote:
> I am curently doing some work for the openoffice docbook filters, and i have a
> problem (as you may have guessed ;-) Lets say i have a template matching
> "a/b/c", and inside this template i want to get the number of "a" items before
> the current one. I tried some mix of preceding-sibling, ancestor, count, and
> ../.. but i cannot seemd to get the number i want. Any idea ?
count(preceding::a)
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
------------------------------------------------------------------
Profesionální školení a poradenství v oblasti technologií XML.
DocBook 18.-19.5. XSLT 24.-26.5.
XML pro vývojáře 7.-8.6. XSL-FO 16.6.
------------------------------------------------------------------
S/MIME Cryptographic Signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]