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

Re: xsl:number and conditional

Subject: Re: xsl:number and conditional
From: Bruce D'Arcus <bdarcus@xxxxxxxxx>
Date: Tue, 31 May 2005 18:51:15 -0400
xsl and conditional saxon
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

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.