<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29830</bug_id>
          
          <creation_ts>2016-09-20 12:49:04 +0000</creation_ts>
          <short_desc>[FO31] Unclear what happens w.r.t. backwards / forwards compatibility in fn:transform</short_desc>
          <delta_ts>2016-12-16 19:55:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Functions and Operators 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>editorial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>andrew_coleman</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127435</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-09-20 12:49:04 +0000</bug_when>
    <thetext>At one point, the text explains that you can either do a 1.0, 2.0 or 3.0 transform with a 1.0, 2.0 or 3.0 processor. We use phrases like:

&quot;For invocation of an XSLT 1.0 processor (see [XSL Transformations (XSLT) Version 1.0]), the supplied options MUST include all of the following and nothing else:&quot; 

Later on we say (bottom of table):

&quot;The minimum level of the XSLT language that the processor must support. Defaults to the [xsl:]version attribute at the outermost level of the stylesheet.&quot;

These two statements are in conflict with each other.

- Do we want to limit the abilities by having either of a 1.0, 2.0 or 3.0 *processor*
- Or do we want to set the option of any available processor to 1.0, 2.0, 3.0, if such option exists, possibly processing in forwards or backwards compatibility mode
- Or do we want both?

I would prefer to allow users freedom of choice. That is:
- a 3.0 stylesheet can be processed with a 2.0 or 3.0 processor
- a 1.0 stylesheet can be processed with a 2.0 or 3.0 processor, and if backwards-compatibility mode is supported it is used
- etc

To allow this freedom, I suggest we either change the wording or add an extra map item, say &quot;supported-xslt-version&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127450</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-20 18:42:44 +0000</bug_when>
    <thetext>I think the intended behaviour is:

* you request a processor that is an implementation of a specific version of XSLT using the xslt-version option, which defaults to the version attribute of the top-level stylesheet module/package. Let&apos;s say the version you request is V.

* the system gives you a processor that supports that version or a higher version, say W.

* the processor then goes into forwards or backwards compatibility mode based on the rules of XSLT version W, for example if W = 3.0 and the stylesheet specifies version = 1.0 then it goes into backwards compatibility mode; if W = 2.0 and the stylesheet specifies version 3.0 then it goes into forwards compatibility mode.

I agree that this could usefully be clarified in the spec. (I think that this is essentially editorial)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127549</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-09-27 15:22:04 +0000</bug_when>
    <thetext>The WG agrees.  Marking at editorial.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127562</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-27 19:50:08 +0000</bug_when>
    <thetext>The spec has been clarified as suggested.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>