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

Re: XSLT 2.0 xsl:number level="any" with from pattern

Subject: Re: XSLT 2.0 xsl:number level="any" with from pattern
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 04 Aug 2010 14:02:13 +0100
Re:  XSLT 2.0 xsl:number level="any" with from pattern
I see the problem. Don't know the answer. Will look at it after Balisage!

Michael Kay
Saxonica

On 04/08/2010 13:49, Martin Honnen wrote:
Michael Kay wrote:


What am I missing, why do those processors not output a number for the first four 'a' elements?




Presumably because they have both implemented erratum E30:


http://www.w3.org/XML/2007/qt-errata/xslt-errata.html#E30

But that erratum (which I mentioned) changes the expression for computing $F from
$S/(preceding::node()|ancestor::node())[matches-from(.)][last()]
to
$S/(preceding::node()|ancestor-or-self::node())[matches-from(.)][last()]
it does not change the definition of matches-from saying
"Let matches-from($node) be a function that returns true if and only if the given node $node matches the pattern given in the from attribute, or if $node is the root node of a tree."
which in my understanding would make $F the root node of the tree for each of the first four 'a' elements.

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.