[Bug 27132] New: [XSLT30] slight inconsistency in rewrite rules with XP30 in 19.8.7.6 Streamability of path expressions

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27132

            Bug ID: 27132
           Summary: [XSLT30] slight inconsistency in rewrite rules with
                    XP30 in 19.8.7.6 Streamability of path expressions
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

We say in that section:

<quote>
The streamability analysis applies after the expansion of the //
pseudo-operator to /descendant-or-self::node()/, and after expanding .. to
parent::node(), @X to attribute::X, and an omitted axis to child::.
</quote>

This would change attribute() to child::attribute() and namespace() to
child::namespace(). While the second is an error according to XP30, it is
believed that this error will be covered in an erratum (see also XT3 bug 27078
and XP3 bug 26788).

I think we should make this rule consistent with XP30 and say that attribute()
is expanded to attribute::attribute() and namespace() is expanded to
namespace::namespace() (or a NOTE to the same extend, like "omitted axes are
extended by the rules in [XP30]").

If we were to treat this rewrite rule literally, then a/attribute() would be
consuming and grounded, where it should be consuming and climbing.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 22 October 2014 15:58:28 UTC