<?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>8245</bug_id>
          
          <creation_ts>2009-11-09 04:08:39 +0000</creation_ts>
          <short_desc>[Ser] Error for characters that are not permitted in HTML omits some control characters</short_desc>
          <delta_ts>2010-06-29 13:53:57 +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>Serialization 1.0</component>
          <version>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xslt-xquery-serialization/#HTML_CHARDATA</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="Henry Zongaro">zongaro</reporter>
          <assigned_to name="Henry Zongaro">zongaro</assigned_to>
          <cc>mike</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>29466</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-11-09 04:08:39 +0000</bug_when>
    <thetext>According to section 7.3 of Serialization,[1] &quot;Certain characters, specifically the control characters #x7F-#x9F, are legal in XML but not in HTML. It is a serialization error [err:SERE0014] to use the HTML output method when such characters appear in the instance of the data model. The serializer MUST signal the error.&quot;

The definition of the error in appendix B[2] repeats this with a slightly different formulation:  &quot;It is an error to use the HTML output method when characters which are legal in XML but not in HTML, specifically the control characters #x7F-#x9F, appear in the instance of the data model.&quot;

It is true that the control characters #x7F through #x9F were the only characters permitted in XML 1.0 that were not permitted in HTML.  In addition, the control characters #x01 through #x1F, excepting #x09, #xA and #xD, are permitted in XML 1.1 (though only as character references), but not in HTML per the SGML declaration of HTML 4.[3]


I suggest the following corrections:

. In the third paragraph of section 7.3, change &quot;specifically the control characters #x7F-#x9F, are legal in XML&quot; to &quot;specifically the control characters #x1-#x8, #xB, #xC, #xE-#x1F and #x7F-#x9F, are legal in one or both versions of XML, but not in HTML&quot;

. In appendix B, in the definition of err:SER0014, change &quot;specifically the control characters #x7F-#x9F&quot; to &quot;specifically the control characters #x1-#x8, #xB, #xC, #xE-#x1F and #x7F-#x9F&quot;


[1] http://www.w3.org/TR/xslt-xquery-serialization/#HTML_CHARDATA
[2] http://www.w3.org/TR/xslt-xquery-serialization/#ERRSERE0014
[3] http://www.w3.org/TR/html401/sgml/sgmldecl.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29468</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-11-09 09:30:58 +0000</bug_when>
    <thetext>Is this now a complete list? Will it always remain a complete list? Might it not be better to change the &quot;specifically&quot; to &quot;such as&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29524</commentid>
    <comment_count>2</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-11-12 16:35:09 +0000</bug_when>
    <thetext>Yes, it&apos;s quite possible that an explicit enumeration of characters will become out of date.  I had worried about that, but I was also concerned that the list of proscribed characters in HTML is so obscure that simply saying &quot;such as&quot; wouldn&apos;t be of much help to either implementers or users.  (After seven years of experience with implementing XSLT, it took me about an hour to discover where the list appears.  I&apos;d like to save others that pain.)

How would you feel about the following proposed edits, which list all the control characters, while still hedging by using &quot;such as&quot;?

. In the third paragraph of section 7.3, change &quot;specifically the control
characters #x7F-#x9F, are legal in XML&quot; to &quot;such as the control characters
#x1-#x8, #xB, #xC, #xE-#x1F and #x7F-#x9F, are legal in one or both versions of XML, but not in HTML&quot;

. In appendix B, in the definition of err:SER0014, delete &quot;, specifically the
control characters #x7F-#x9F,&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29525</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-11-12 16:41:21 +0000</bug_when>
    <thetext>That looks fine to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29758</commentid>
    <comment_count>4</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-11-26 20:00:29 +0000</bug_when>
    <thetext>At its teleconference of 2009-11-12,[4] the WG suggested the wording proposed in comment #2 should be reworked to make it clear which control characters are permitted by which version of XML - particularly as many people will not be as familiar with the XML 1.1 Recommendation.  This is my revised proposal:

. In the third paragraph of section 7.3, change &quot;Certain characters, specifically the control characters #x7F-#x9F, are legal in XML but not in HTML.&quot; to &quot;Certain characters are legal in XML, but not in HTML -- for example, the control characters #x7F-#x9F, are legal in both XML 1.0 and XML 1.1, and the control characters #x1-#x8, #xB, #xC and #xE-#x1F are legal in XML 1.1, but none of these is permitted in HTML.&quot;

. In appendix B, in the definition of err:SER0014, delete &quot;, specifically the
control characters #x7F-#x9F,&quot;


[4] http://lists.w3.org/Archives/Member/w3c-xsl-wg/2009Nov/0028.html (Member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29886</commentid>
    <comment_count>5</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-12-02 11:29:58 +0000</bug_when>
    <thetext>At the joint teleconference of the XQuery and XSL Working Groups of 2009-12-01,[1]
the proposal in comment #4 was accepted.  As only a few members of the XSL WG were present on the call, I will bring the proposal back to that working group for final ratification.

[5] http://lists.w3.org/Archives/Member/w3c-xsl-query/2009Dec/0005.html (Member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29899</commentid>
    <comment_count>6</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-12-02 18:57:24 +0000</bug_when>
    <thetext>[Revising the abstract.]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29921</commentid>
    <comment_count>7</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-12-03 19:58:36 +0000</bug_when>
    <thetext>At its teleconference of 2009-12-03,[6] the XSL Working Group ratified the decision reported in comment #5.

This will be Serialization erratum SE.E15.

[6] http://lists.w3.org/Archives/Member/w3c-xsl-wg/2009Dec/0008.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>