<?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>6466</bug_id>
          
          <creation_ts>2009-01-23 13:37:17 +0000</creation_ts>
          <short_desc>[SER] quotes in doctype-system parameter</short_desc>
          <delta_ts>2009-06-16 15:26:55 +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>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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Henry Zongaro">zongaro</assigned_to>
          
          
          <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>23233</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-01-23 13:37:17 +0000</bug_when>
    <thetext>The serialization spec says that the value of serialization parameter doctype-system can be any sequence of Unicode charaters.

However, if the string contains both a single-quote character and a double-quote character, then it is not possible to construct a doctype declaration that satisfies the XML syntax.

The corresponding restriction for doctype-public was introduced as a side-effect of erratum SE.E1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23311</commentid>
    <comment_count>1</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-01-29 10:42:24 +0000</bug_when>
    <thetext>I&apos;ll put forward two alternatives.  In section 3 &quot;Serialization Parameters,&quot; in the row that describes &quot;doctype-system,&quot; after &quot;A string of Unicode characters. This parameter may be absent,&quot; add either

1) &quot;It is an error if doctype-system does not conform to the syntax of SystemLiteral[XML].&quot; or

2) &quot;It is an error if the value of doctype-system contains both an apostrophe and a quotation mark.&quot;

The advantage of 1) is that it follows the model of SE.E1.[1]  The problem is that it&apos;s not strictly correct - the syntax of SystemLiteral (and of PubidLiteral, in the case of SE.E1) includes the enclosing apostrophes or quotation marks, while the values of doctype-system and doctype-public do not include those delimiters.

We could just ignore that issue, and go with 1) - it&apos;s not very likely to cause confusion - or we go with 2) and also alter the text added by SE.E1 to say &quot;It is an error if the value of doctype-public contains a character that is not PubidChar[XML].&quot;  I&apos;m inclined to take the latter route.

[1] http://www.w3.org/XML/2007/qt-errata/xslt-xquery-serialization-errata.html#E1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23312</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-01-29 11:10:46 +0000</bug_when>
    <thetext>&gt;we go with 2) and also alter the text added by SE.E1 to say &quot;It is an error if the value of doctype-public contains a character that is not PubidChar[XML].&quot;  I&apos;m inclined to take the latter route.

I agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23486</commentid>
    <comment_count>3</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-02-05 18:06:16 +0000</bug_when>
    <thetext>At its teleconference of 2009-02-05, the XSL WG considered this bug report.  The WG approved the substantive changes proposed by the second alternative of the last paragraph of comment 1.  To reiterate:

In section 3 &quot;Serialization Parameters,&quot; in the row that describes &quot;doctype-system,&quot; after &quot;A string of Unicode characters.  This parameter may be absent,&quot; add &quot;It is an error if the value of doctype-system contains both an apostrophe
and a quotation mark.&quot;

And alter the text added by SE.E1 to say &quot;It is an error if the value of doctype-public contains a character that is not a PubidChar[XML].&quot;

XQuery WG consideration of the bug is still pending.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23628</commentid>
    <comment_count>4</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-02-10 18:41:33 +0000</bug_when>
    <thetext>At the joint teleconference of 2009-02-10, the XQuery WG concurred with the decision of the XSL WG.  This will be erratum SE.E10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24392</commentid>
    <comment_count>5</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-03-24 17:22:04 +0000</bug_when>
    <thetext>After the changes to the Serialization 1.0 recommendation were accepted, I noted that the second paragraph of section 3 already states, &quot;It is a serialization error [err:SEPM0016] if a parameter value is invalid for the given parameter,&quot; so I decided to make an editorial change to restate the descriptions of the doctype-system and doctype-public parameters in the positive, saying instead what values are permitted:

For doctype-public, &quot;A string of PubidCharXML characters. This parameter may be absent.&quot;  For doctype-system, &quot;A string of Unicode characters that does not include both an apostrophe (#x27) and a quotation mark (#x22) character. This parameter may be absent.&quot;

I trust this change will be acceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25587</commentid>
    <comment_count>6</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2009-06-16 15:26:55 +0000</bug_when>
    <thetext>Published in &quot;Errata for XSLT 2.0 and XQuery 1.0 Serialization&quot;[1] and PER draft of &quot;XSLT 2.0 and XQuery 1.0 Serialization (Second Edition).&quot;[2]

[1] http://www.w3.org/XML/2007/qt-errata/xslt-xquery-serialization-errata.html
[2] http://www.w3.org/TR/2009/PER-xslt-xquery-serialization-20090421/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>