<?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>29344</bug_id>
          
          <creation_ts>2015-12-17 20:03:09 +0000</creation_ts>
          <short_desc>Failure to close empty elements makes use of XML-based tools for proofing overly difficult - XPath</short_desc>
          <delta_ts>2015-12-18 09:46:43 +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>XPath 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Patrick Durusau">patrick</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>cmcconkey6</cc>
    
    <cc>josh.spiegel</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>124456</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Durusau">patrick</who>
    <bug_when>2015-12-17 20:03:09 +0000</bug_when>
    <thetext>I would have posted only one issue but as configured, Bugzilla only permits one component per bug. 

The The current XPath Candidate draft, http://www.w3.org/TR/2015/CR-xpath-31-20151217/, fails to close empty elements as follows:

[FODC0002] &quot;file:/home/patrick/working/w3c/XPath3.1.html&quot; (Line 68): The element type &quot;link&quot; must be terminated by the matching end-tag &quot;&lt;/link&gt;&quot;.

[FODC0002] &quot;file:/home/patrick/working/w3c/XPath3.1.html&quot; (Line 68): The element type &quot;meta&quot; must be terminated by the matching end-tag &quot;&lt;/meta&gt;&quot;.

2 none closed &lt;meta&gt; elements

[FODC0002] &quot;file:/home/patrick/working/w3c/XPath3.1.html&quot; (Line 69): The element type &quot;img&quot; must be terminated by the matching end-tag &quot;&lt;/img&gt;&quot;.

3 none closed &lt;img&gt; elements

[FODC0002] &quot;file:/home/patrick/working/w3c/XPath3.1.html&quot; (Line 78): The element type &quot;br&quot; must be terminated by the matching end-tag &quot;&lt;/br&gt;&quot;.

230 none closed &lt;br&gt; elements

[FODC0002] &quot;file:/home/patrick/working/w3c/XPath3.1.html&quot; (Line 9730): The element type &quot;hr&quot; must be terminated by the matching end-tag &quot;&lt;/hr&gt;&quot;.

2 none closed &lt;hr&gt; elements

I make that to be 238 edits that must be made to use XML based tools on the most recent XPath 3.1 Candidate draft.

I realize this is a production error but it is one that significantly impacts the review of this draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124459</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2015-12-17 20:36:36 +0000</bug_when>
    <thetext>I don&apos;t see these problems in the published html.  Is it possible that the software you are using to download these files is also modifying them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124460</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-12-17 20:47:21 +0000</bug_when>
    <thetext>I wonder if the XML version would be better for your purposes - you can find it in the headers for the spec.

For this version, see http://www.w3.org/TR/2015/CR-xquery-31-20151217/xquery-31.xml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124461</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-12-17 20:48:52 +0000</bug_when>
    <thetext>I wonder if the XML version would be better for your purposes - you can find it in the headers for the spec.

For this version, see http://www.w3.org/TR/2015/CR-xquery-31-20151217/xquery-31.xml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124466</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Durusau">patrick</who>
    <bug_when>2015-12-18 03:36:24 +0000</bug_when>
    <thetext>I was using BaseX, which was correctly reporting errors with the file as I presented it.

However, the file as displayed (CNTR-U) in Chrome, is not the same file as saved by Chrome.

In particular, for some unknown (to me) reason, Chrome is stripping out the closing &quot;/&quot; from empty elements.

My bad. 

I have marked the status of this bug (and soon the others) as Resolved, Invalid. 

Please re-set if some other notation is more appropriate.

Hope you are having a great week!

Patrick</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>