[Bug 24764] New: [xslt 3.0] xsl:context-item and the initial input sequence

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

            Bug ID: 24764
           Summary: [xslt 3.0] xsl:context-item and the initial input
                    sequence
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

In the latest spec we distinguish between "priming" a stylesheet, at which
point we supply an initial context item, and invoking an initial mode, at which
point we supply an "initial input sequence".

The documentation for xsl:mode/xsl:context-item continues to talk about it
constraining the "initial context item for the mode", which doesn't match the
new terminology, nor the fact that it can now be a sequence rather than an
item.

In addition, we now have no way to declare anything about the initial context
item used for initializing global variables.

Suggestion:

(a) we allow xsl:context-item as a child of xsl:package, to declare the
expected type of the context item used by the global variables in that package.
(There is only one initial context item for the transformation, and it must
match the requirements of all packages).

(b) in xsl:mode, we remove the xsl:context-item child. We could replace it with
some new element/attribute that gives the required type of the initial input
sequence, but this isn't really needed because it can be constrained using the
match attributes of the templates in the mode, together with an
"on-no-match='fail'" attribute at the mode level.

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

Received on Friday, 21 February 2014 15:21:41 UTC