[XSLT2] xsl:number difference in XSLT2 and XSLT1 when using from

Hi,

If I understand correctly, there is a difference in XSLT2 and XSLT1 when using xsl:number with the from and count attributes specified. ( level=single|nultiple )

XSLT1:
If the from attribute is specified, then the only ancestors that are searched are those that are descendants of the nearest ancestor that matches the from pattern. 

XSLT2:
$AF ::= $A[ancestor-or-self::node()[. is $F]] this will mean that ancestors that are descendants-or-self of the innermost from matching node are searched. 

If the first node matching the count pattern is the same with the one selected by the from expression, XSLT1 will return the empty sequence, XSLT2 will return the node.

I think this should be mentioned in the XSLT1 difference list and clarified how this should be handled when backwards compatibility mode is enabled. Or if this difference isn't intentional then the $AF construction should be corrected to $A[ancestor::node()[. is $F]].


Best regards,
Botond


.... Botond Biró
.... Software Engineer
.... Altova GmbH

===================================================================
AltovaŽ  accelerates  application development  and  data management
projects with  software  and  solutions  that enhance  productivity
and maximize results. Uncover why Altova is the preferred choice of
over 2.5 million users worldwide!  Look into  www.altova.com today!
===================================================================

Altova,  XMLSpy, MapForce, StyleVision, SemanticWorks, SchemaAgent,
UModel,  DiffDog,  DatabaseSpy, AltovaXML, and Authentic are trade-
marks  and/or registered  trademarks  of  Altova GmbH in the United
States of America, the European Union and numerous other countries.
The information transmitted in this message and/or as an attachment
to it  is intended  only for the  person or  entity to  which it is
addressed and may contain confidential  and/or privileged material.
Any  review,  retransmission,  dissemination  or  other use of,  or
taking of any action in reliance upon,  this information by persons
or entities other than the intended recipient is prohibited. If you
received this in error,  please contact  the sender  and delete the
material from any computer.  Altova GmbH  and  Altova, Inc.  do not
accept legal responsibility  for the contents of this message.  Any
views or opinions  presented are solely  those of the author and do
not  necessarily  represent those of  Altova GmbH and  Altova, Inc.
unless otherwise specifically stated. Thank you!

Received on Thursday, 7 December 2006 14:45:22 UTC