Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#286 xsl:number level="any" on attribute nodes

v8.2
closed
Michael Kay
5
2012-10-08
2005-01-05
Michael Kay
No

Saxon returns incorrect results for <xsl:number level="any"> when the context node is an attribute that does not match the count pattern, and when its parent is an element that does match the count pattern. The error occurs only when using the tiny tree model.

The bug is present in all previous releases including Saxon 6.5.3.

The following source code fix clears the problem:

In module net.sf.saxon.tinytree.TinyNodeImpl, delete lines 396-397. These lines read:

      } else if (type==ATTRIBUTE || type==NAMESPACE) {
          return new PrecedingEnumeration(
                          document,
(TinyNodeImpl)getParent(), nodeTest, true);

Discussion

  • Michael Kay
    Michael Kay
    2005-01-05

    Logged In: YES
    user_id=251681

    The fix published above does not work, and is withdrawn. A
    more complex solution is required.