<?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>29236</bug_id>
          
          <creation_ts>2015-10-24 13:23:13 +0000</creation_ts>
          <short_desc>[xslt30ts] package-100, 101: extra empty &lt;row&gt; elements in output</short_desc>
          <delta_ts>2016-02-16 15:00:27 +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 Test Suite</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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="Abel Braaksma">abel.online</assigned_to>
          <cc>abel.braaksma</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>123885</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-24 13:23:13 +0000</bug_when>
    <thetext>In package-100 I&apos;m getting two empty &lt;row&gt; elements at the start, as in the expected results:

In package-101 I&apos;m getting one empty &lt;row&gt; element, which isn&apos;t expected.

The first empty row appears to arise because we&apos;re applying templates to the variable $csv:quote-ok, and the value of this variable is not an empty sequence, but a document node with no children (because the xsl:variable has no &quot;as&quot; attribute).

I can fix the results for package-101 by adding &apos;as=&quot;xs:error?&quot;&apos; to the xsl:variable declaration, but when I do this, package-101 only has a single empty &lt;row/&gt; at the start: which is, I think, the correct result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123886</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-24 13:26:43 +0000</bug_when>
    <thetext>Note: when resolved, we need to update the example in the spec accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125103</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-02-16 15:00:27 +0000</bug_when>
    <thetext>At the F2F there was some confusion as to whether this test was fixed, after some checking back and forth we found it was. Will close as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>