[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

counter in XSL - cant use xsl:number/postion with my p

Subject: counter in XSL - cant use xsl:number/postion with my problem
From: "Sebastian Fey" <fey@xxxxxxxxxxx>
Date: Wed, 3 Dec 2003 18:25:07 +0100
xsl number counter
hi,

i got something like the following problem:

[xsl:template name="foo"]
...
[xsl:apply-templates match="book" /]
...
[xsl:template name="book"]
[xsl:if test="this test doesnt depend on book.nodeValue but on the .xml book.nodeValue links to"]
[xsl:variable name="counter"]$counter+1[/xsl:variable]
...
[/xsl:if]


... my .xsl processes a .xml which links to several .xml (docbook-books).
the template matching book decides wether the current book fits the context and if so 
puts its title in a fo:list (the book.xml is loaded by document() ).
problem:
unlike html fo doesnt increment list-labels automatically, so i have to quote the label explicit.
i cant use xsl:number or xsl:position cause the labels dont depend on the postion of the book nodes, 
but on the kind of book.xml the book-nodes link to.


thx in advance,

sebastian




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.