Subject: RE: [xsl] counter in XSL - some more info ... help still needed From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 04 Dec 2003 09:01:33 -0500 |
the documentation consists of several docbook-xml-documents, each document is part of a class.
lets call them classA and classB. documents can also be part of both classes (classALL)
the class is stored in an attribute in the docbook-xml-documents
.... <book type="classX" ...> ....
the structure of the release is described in release.xml:
<release> <volume> <title>Installation</title> <book fileref="{uri of book1} /><!--assume book1 has classA--> <book fileref="{uri of book2} /><!--assume book2 has classB--> <book fileref="{uri of book3} /><!--assume book3 has classALL--> <book fileref="{uri of book4} /><!--assume book4 has classA--> <book fileref="{uri of book5} /><!--assume book5 has classALL--> ... titlepage for classB would look like this:
CLASS-B
-------
Volume 1. Installation
1. book2/title
2. book3/title
3. book5/title
...
the problem is obvious, eg book5 has the label "3." but its the 5th child of volume.
so I cant use position() and xsl:number.
<xsl:number count="book[document(@fileref)/book/@type='classB' or document(@fileref)/book/@type='classALL']"/>
I need sth like a counter to solve this problem ...
-- Next public European delivery: 3-day XSLT/2-day XSL-FO 2004-01-?? Instructor-led on-site corporate, government & user group training for XSLT and XSL-FO world-wide: please contact us for the details
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] counter in XSL - some mor, Sebastian Fey | Thread | [xsl] How to package XSLT/XML files, santony |
[xsl] \, David Tolpin | Date | Re: [xsl] \, David Carlisle |
Month |