[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:number and conditional
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|