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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--