This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27682 - [xslt3.0] Template rules in modes apply to any item, not only nodes
Summary: [xslt3.0] Template rules in modes apply to any item, not only nodes
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-21 21:10 UTC by Michael Kay
Modified: 2015-10-29 09:50 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2014-12-21 21:10:40 UTC
Dimitre Novachev correctly points out on xsl-list:

In section "6.6 Modes" of the 2nd Last Call of the W3C XSLT 3.0
specification (http://www.w3.org/TR/2014/WD-xslt-30-20141002/#modes)
we read:

"[Definition:  Modes allow a node in a source tree to be processed
multiple times, each time producing a different result. They also
allow different sets of template rules to be active when processing
different trees, for example when processing documents loaded using
the document function (see 20.1 fn:document) or when processing
temporary trees".

This is true, but the definition mentions only processing "a node" and
leaves out the fact that a mode may contain templates that match an
atomic item or a function.

In the whole text throughout this section, only processing of nodes is
mentioned and this leaves the perception that it isn't allowed for a
mode to contain templates that match non-node items.

....
-- 
Cheers,
Dimitre Novatchev
Comment 1 Michael Kay 2015-01-09 23:57:04 UTC
Fixed editorially.

The language of this section has been made more inclusive.