<?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>7007</bug_id>
          
          <creation_ts>2009-06-09 14:40:40 +0000</creation_ts>
          <short_desc>WFC Entity Declared and standalone documents</short_desc>
          <delta_ts>2010-03-02 18:58:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>0.8.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Giovanni Campagna">scampa.giovanni</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25524</commentid>
    <comment_count>0</comment_count>
    <who name="Giovanni Campagna">scampa.giovanni</who>
    <bug_when>2009-06-09 14:40:40 +0000</bug_when>
    <thetext>While validating an XML document, the violation of WFC Entity Declared ( http://www.w3.org/TR/xml/#wf-entdeclared ) is not reported if the entity is declared in the external subset, even if the document is declared as &quot;standalone=yes&quot;.

An example of this behaviour:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;uft-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;!DOCTYPE test SYSTEM &quot;http://example.org/test.dtd&quot;&gt;&lt;test&gt;&amp;test;&lt;/test&gt;

where test.dtd contains:
&lt;!ENTITY test &quot;test content&quot;&gt;
&lt;!ELEMENT test (#PCDATA)*&gt;

is considered valid by the markup validator, but it should be a Fatal Error according to XML, because the document is not well-formed (and thus cannot be valid).

(Tested using the version online at validator.w3.org)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30129</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-12-14 21:22:17 +0000</bug_when>
    <thetext>All undefined entity errors from XML::LibXML were explicitly filtered out to avoid noise because the XML::LibXML preprocessor does not currently load external DTDs in any case; the development version no longer filters them out for standalone documents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32774</commentid>
    <comment_count>2</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2010-03-02 18:58:57 +0000</bug_when>
    <thetext>Fix included in 0.8.6.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>