On 5/31/05, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
I don't understand why you've changed a "correctly working stylesheet".
I thought we concluded that the for-each was unnecessary with 2.0, and
I didn't realize the counting wasn't working correctly until later
(earlier today in fact).
Saxon (8.4) will not allow me to remove the $footcitable on the count,
nor to add it as context to the footnote.
Your original "correctly working stylesheet" didn't have $footcitable in the
count pattern, and works with Saxon 8.4, so I don't understand what you mean
by this. And I don't know what you mean by "add it as context to the
footnote" either!
Put simply, Saxon will not allow this:
<xsl:number level="any" select="$footciteable"
count="footnote|citation[not(ancestor::footnote)]"/>
.. nor this:
<xsl:number level="any" select="$footciteable"
count="$footciteable/footnote|citation[not($footciteable/ancestor::footnote)]"/>
In the first case, I get this error:
Axis step ancestor::element(footnote) cannot be used here: the context
item is undefined
This is incorrect?
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>
--~--