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

Re: XSLT 3.0: Question about the meaning of <xsl:mode

Subject: Re: XSLT 3.0: Question about the meaning of <xsl:modetyped="unspecified"/>
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 2 Jan 2015 22:20:26 -0000
 Re: XSLT 3.0: Question about the meaning of  <xsl:mode
The values yes | no | typed | untyped all impose contraints; they cause errors
to be reported if certain conditions apply.

Omitting the attribute, or specifying "unspecified", imposes no contraints. So
in a sense, this value has no effect; there are no semantics to be explained.
However, I agree that it would be useful to say so explicitly.

Michael Kay
+44 (0) 118 946 5893

On 30 Dec 2014, at 02:48, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

> The 2nd Last Call of the W3C XSLT 3.0 specification lists the
> attributes of the <xsl:mode> declaration and their possible values.
> In Section "6.6.1 Declaring Modes"
> (http://www.w3.org/TR/2014/WD-xslt-30-20141002/#declaring-modes), the
> possible values of the "typed" attribute are enumerated as:
>   typed? = boolean | "strict" | "lax" | "unspecified"
> Here it is also said that the default value for this attribute is
> These values are discussed in section "6.6.3 Declaring the Type of
> Nodes Processed by a Mode"
> (http://www.w3.org/TR/2014/WD-xslt-30-20141002/#xsl-mode-typed).
> It is explained what the two possible Boolean values mean, and that
> the values  "strict" and "lax" imply the Boolean true() and add some
> nuances to it.
> However, there is no mention of the default value "unspecified" and
> thus it is not known what this value exactly means.
> My question is:
>  What is the meaning of the value "unspecified" of the "typed"
> attribute of <xsl:mode> and how it is different from specifying the
> Boolean value false() ("no", 0 or "false").
> Have I missed an existing description of this, or does such
> description need to be added?
> --
> Cheers,
> Dimitre Novatchev

Current Thread


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.
First Name
Last Name
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.