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] 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.
------------------------------------------------------------------

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]