<?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>23227</bug_id>
          
          <creation_ts>2013-09-12 19:00:48 +0000</creation_ts>
          <short_desc>[XT30] xsl:output</short_desc>
          <delta_ts>2014-05-15 14:00:37 +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</component>
          <version>Candidate Recommendation</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</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="Tim Mills">tim</reporter>
          <assigned_to name="Michael Kay">mike</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>93303</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-09-12 19:00:48 +0000</bug_when>
    <thetext>Suppose we have an XSLT 2.0 stylesheet xhtml.xsl which has an xsl:output declaration specifying HTML output with the DOCTYPE public and system identifiers from XHTML Strict 1.0.

At a later date, we try to reuse this stylesheet via an xsl:import, but change the output to be HTML 5, with a DOCTYPE of the form &lt;!DOCTYPE HTML&gt; (I.e. no system or public identifier).  For this to happen, the doctype-public and doctype-system properties must be absent in the xsl:output declaration.

This appears to be impossible since the doctype-public and doctype-system properties can&apos;t be reset to be absent in the importing stylesheet.  They will have values merged from the imported xhtml.xsl.

(I believe that specifying doctype-system=&quot;&quot; does not have effect of making it absent, but rather sets it o the empty string.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93334</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-09-13 08:17:48 +0000</bug_when>
    <thetext>I agree. This has been raised before and I thought we had fixed it, but I can&apos;t see any evidence either of the fix or of the earlier discussion. 

(Saxon in fact behaves the way you are suggesting: a zero length string for doctype-system or doctype-public is interpreted as &quot;absent&quot;. A deliberate non-conformance, and I don&apos;t do that without a very strong reason.).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93335</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-09-13 08:29:18 +0000</bug_when>
    <thetext>Thanks.  Is that likely to make its way into the specification?  If so, I&apos;ll follow suit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93384</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-09-14 09:09:16 +0000</bug_when>
    <thetext>It appears that we made a decision on this:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=5893

but as far as I can see the decision is not reflected in the current specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93385</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-09-14 09:14:52 +0000</bug_when>
    <thetext>Incidentally, the fact that a bugzilla search for &quot;doctype-system&quot; fails to find bug 5893 would seem worthy of a bug report in its own right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93657</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-09-23 17:04:05 +0000</bug_when>
    <thetext>I have now applied the change that was agreed in erratum E32, in response to bug 5893, bringing the 3.0 spec into line with the 2.0 PER.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>