<?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>24438</bug_id>
          
          <creation_ts>2014-01-29 11:17:10 +0000</creation_ts>
          <short_desc>[XSLT 3.0] Order of children within xsl:stylesheet</short_desc>
          <delta_ts>2014-02-12 14:02:05 +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>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>cmsmcq</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>99405</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-01-29 11:17:10 +0000</bug_when>
    <thetext>The syntax for xsl:stylesheet says that xsl:use-package must come first if it appears at all.

The prose additionally says:

If there are xsl:use-package elements, these must come before any other elements. If there are xsl:import elements, these must come after any xsl:use-package elements but before any other elements.

But we removed the requirement for xsl:import to come first from the grammar and we intended to remove it from the prose (see J.1 item 9(f)).

Given our decision on bug #23944, we should reconsider the rule that xsl:stylesheet/xsl:use-package must come first.

Also note, these changes to the rules on ordering need to be reflected in the schema for XSLT 3.0 stylesheet modules.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99480</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-01-30 17:56:14 +0000</bug_when>
    <thetext>We might also like to rethink whether we really want to allow xsl:use-package as a child of xsl:stylesheet at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100175</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-10 16:35:13 +0000</bug_when>
    <thetext>After some discussion of this in Prague, the WG decided to adopt the proposal implicit in comment 1, and forbid use-package as a child of stylesheet, the rationale being that if a stylesheet author is willing and able to modify the stylesheet module to use a use-package element, the module can also be modified to use a package element.  (This also simplifies the treatment of the interaction of import and use-package.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100328</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-11 21:23:02 +0000</bug_when>
    <thetext>The change has been implemented. Note that it interacts with bug #24310. No change was needed to the schema for XSLT because it did not allow use-package anyway.

A perhaps unanticipated consequence of the change is that the transformation of a &quot;bare&quot; stylesheet into a package now applies to any stylesheet, without requiring that it contain a use-package element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100398</commentid>
    <comment_count>4</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-12 14:02:05 +0000</bug_when>
    <thetext>The WG reviewed the changes described in comment 3 and expressed its content.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>