<?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>3083</bug_id>
          
          <creation_ts>2006-04-04 19:34:39 +0000</creation_ts>
          <short_desc>[XSLT] escape-uri-attributes or include-content-type specified for xml output method</short_desc>
          <delta_ts>2006-06-21 11:45:08 +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 2.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>All</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="Joanne Tong">joannet</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>9035</commentid>
    <comment_count>0</comment_count>
    <who name="Joanne Tong">joannet</who>
    <bug_when>2006-04-04 19:34:39 +0000</bug_when>
    <thetext>Section 5.1.12 (XML Output Method: the escape-uri-attributes Parameter) and section 5.1.13 (XML Output Method: the include-content-type Parameter) in Serialization contain the following sentence:

&quot;It is the responsibility of the host language to specify whether an error occurs if this parameter is specified in combination with the XML output method, or if the parameter is simply dropped.&quot;

XSLT 2.0 specification does not specifically say what happens if the output method is &apos;xml&apos; and escape-uri-attributes or include-content-type are specified.

thanks,
Joanne Tong</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9609</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-05-05 08:38:17 +0000</bug_when>
    <thetext>The WG agreed that this should be an error and asked the editor to draft suitable text, checking first that all similar consistency issues are handled in the same way.

I think the general rule should be: if the xsl:output method is explicitly specified, and if a value is explicitly specified for a serialization parameter that is not applicable to this output method, then:

* if the xsl:output declaration defining the output method has higher import precedence than the declaration specifying the inapplicable parameter, the inapplicable parameter is ignored [the reason for this rule is that it otherwise becomes impossible for an importing stylesheet to change the output method]

* otherwise a static error (XTST1565) is signaled.

This applies to the following combinations:

Method       Inapplicable parameters
======       =======================

XML          escape-uri-attributes, include-content-type

XHTML        (none)

HTML         omit-xml-declaration, standalone

TEXT         version, indent, cdata-section-elements, 
             omit-xml-declaration, standalone, 
             doctype-system, doctype-public,
             undeclare-prefixes, escape-uri-attributes,
             include-content-type

Michael Kay </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10049</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-06-15 19:15:44 +0000</bug_when>
    <thetext>An update on this. Following discussion at a WG telcon, I decided to anticipate a formal WG decision on this issue by including a potential resolution in the 8 June draft. This resolution had been discussed but had not yet been agreed. The draft includes a note (in J2.4: search for 3083) saying that this resolution is provisional. The places affected by the change can be found by searching for the word &quot;inapplicable&quot;.

The proposed resolution is that serialization properties that are inapplicable to the selected output method are ignored, except that the processor may (optionally) validate their values. The reason this resolution was favoured in discussion is that there are many ways output properties can be overridden: not only via import precedence as discussed in comment #1, but also via xsl:result-document, and perhaps via an API. If the user chooses to override output method XHTML by HTML say, then it seems to make sense for other properties that aren&apos;t relevant to HTML to be simply ignored.

The WG has not yet made a formal decision on this proposal.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>