<?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>29978</bug_id>
          
          <creation_ts>2016-11-05 10:21:42 +0000</creation_ts>
          <short_desc>[XSLT30] Update error XTSE0120 and XTSE0130 for packages (xsl:package) and xsl:transform</short_desc>
          <delta_ts>2016-11-16 17:31:18 +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>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>minor</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>sca.w3c</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>128061</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-05 10:21:42 +0000</bug_when>
    <thetext>Currently we have:

[ERR XTSE0120] An xsl:stylesheet element must not have any text node children.

and:

[ERR XTSE0130] It is a static error if the xsl:stylesheet element has a child element whose name has a null namespace URI.


I propose to update these errors:

[ERR XTSE0120] An xsl:stylesheet, xsl:transform or xsl:package element must not have any text node children.

and:

[ERR XTSE0130] It is a static error if an xsl:stylesheet, xsl:transform or xsl:package element has a child element whose name has a null namespace URI.

We could consider adding to XTSE0130/XTSE0120 other instructions/declarations that have a defined body, i.e. that do not allow a sequence constructor (like xsl:fork, xsl:choose etc). In fact, we could generalize it perhaps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128062</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-05 10:22:53 +0000</bug_when>
    <thetext>Or we could say &quot;If a top-level element contains...&quot;, since top-level elements are defined as being one of xsl:package, xsl:transform, xsl:stylesheet, xsl:override.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128143</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-11-10 23:58:17 +0000</bug_when>
    <thetext>I have applied the suggested changes, which are editorial in that they do not change the technical intent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128190</commentid>
    <comment_count>3</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2016-11-16 17:31:18 +0000</bug_when>
    <thetext>SCA closed this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>