[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT 3.0: Conflicting text describing <xsl:mode>

Subject: XSLT 3.0: Conflicting text describing <xsl:mode>
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Dec 2014 17:58:21 -0000
 XSLT 3.0: Conflicting text describing <xsl:mode>
 In the 2nd Last Call of the XSLT 3.0 specification, section "6.6.1
Declaring modes" provides the syntax of an <xsl:mode> declaration as:

<!-- Category: declaration -->
< xsl:mode
  name? = eqname
  streamable? = boolean
  on-no-match? = "deep-copy" | "shallow-copy" | "deep-skip" |
"shallow-skip" | "text-only-copy" | "fail"
  on-multiple-match? = "use-last" | "fail"
  warning-on-no-match? = boolean
  warning-on-multiple-match? = boolean
  typed? = boolean | "strict" | "lax" | "unspecified"
  visibility? = "public" | "private" | "final" />


As we clearly see, there is no provision that an <xsl:mode> can have
any content (such as children elements).

However, at the end of the section we read:

"The above rules apply both to the attributes (other than name) of the
xsl:mode element itself, and to the attributes of the contained
xsl:context-item element if present."

So, it seems that an <xsl:mode> can have as a child an
<xsl:context-item> element.

This clearly is in conflict with the syntax above, and the fact that
an "xsl:mode" can have content/children is not mentioned anywhere in
the whole section "6.6 Modes".

One could wonder which is right: the syntax definition above (no
content), or the sentence that implies that an <xsl:mode> can have an
<xsl:context-item> element as child.

If the latter is true, then probably there might be yet other children
elements of <xsl:mode> -- also unmentioned?

It seems that in its current version, the text defining <xsl:mode> is
incomplete and doesn't provide important information about the
structure/content of this XSLT declaration.

Hope that this observation would be reflected in a future, needed correction.

-- 
Cheers,
Dimitre Novatchev

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.