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

Subject: Re: [xsl] XSLT 2.0 xsl:number level="any" with from pattern
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 04 Aug 2010 14:49:58 +0200
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.



--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread