|
Subject: Re: [xsl] xsl:number and conditional From: Bruce D'Arcus <bdarcus@xxxxxxxxx> Date: Tue, 31 May 2005 18:51:15 -0400 |
On 5/31/05, Michael Kay <mike@xxxxxxxxxxxx> 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::foot
note)]"/>
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] xsl:number and conditiona, Michael Kay | Thread | RE: [xsl] xsl:number and conditiona, Michael Kay |
| RE: [xsl] xsl:number and conditiona, Michael Kay | Date | RE: [xsl] xsl:number and conditiona, Michael Kay |
| Month |