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

xsl:number/@count (was minor grouping issue)

Subject: xsl:number/@count (was minor grouping issue)
From: "Bruce D'Arcus" <bdarcus@xxxxxxxxx>
Date: Sat, 7 May 2005 20:02:56 -0400
xsl number count
On May 7, 2005, at 6:59 PM, Michael Kay wrote:

The count attribute indicates which nodes should be counted. For example, if
you want to number figures and equations in the same numbering sequence, you
write count="figure|equation". By default, you count nodes of the same name
as the one you are numbering, so you can probably just omit this attribute.

As luck would have it, I think I may need the count attribute, then, because my next step after fixing these little bugs is to go back and reimplement the footnote-based citation style, which I'm thinking is going to mean I'll need to do something like count="db:footnote|db:citation[not(../db:footnote/db:para)]".


The xpath expression is probably wrong, and I still haven't figured out how to this with this new code architecture, but the idea is I need to basically convert db:citation elements (that aren't already in footnotes) to "footnotes" on output, which includes numbering them as footnotes.

So then does that mean if the function gets called from two different templates -- db:citation and db:footnote in this case -- the missing count attribute would know to count either?

Bruce

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.