<?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>2469</bug_id>
          
          <creation_ts>2005-11-04 17:19:01 +0000</creation_ts>
          <short_desc>[XSLT] Handling of Serialization Errors</short_desc>
          <delta_ts>2006-03-10 21:12:28 +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>PC</rep_platform>
          <op_sys>Windows XP</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="Michael Kay">mike</assigned_to>
          <cc>colin</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>7054</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-11-04 17:19:01 +0000</bug_when>
    <thetext>We have a statement in section 2.9 which seems surprising in the light of
recent decisions:

As with other aspects of serialization, the handling of serialization errors
is implementation-defined: see 20 Serialization.

Similarly, section 20 starts out:

Stylesheet authors can use the xsl:output declaration to specify how they
wish result trees to be serialized. If a processor serializes a final result
tree, it *should* do so as specified by these elements; however, it is not
*required* to do so.

(Concerning handling of serialization errors, section 20 passes the buck
back to section 2.9)

We may want to review whether we intended to be a bit more
prescriptive.

Michael Kay
previously raised as
http://lists.w3.org/Archives/Member/w3c-xsl-wg/2005Oct/0005.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7240</commentid>
    <comment_count>1</comment_count>
    <who name="Colin Adams">colin</who>
    <bug_when>2005-11-21 06:01:27 +0000</bug_when>
    <thetext>*** Bug 2540 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7413</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-12-13 11:41:41 +0000</bug_when>
    <thetext>The XSL WG discussed this comment at its meeting on 8 Dec 2005 and agreed with
the general sentiment: the specification should be more prescriptive about the
handling of serialization in general, and serialization errors in particular, to
reflect the decisions that had been made in the past on these topics. The editor
was asked to propose specific textual changes.

Proposal:

1. In section 2.9, change

As with other aspects of serialization, the handling of serialization errors is
implementation-defined: see 20 Serialization.

to

If the processor performs serialization, then it MUST do so as specified in 20
Serialization, and in particular it MUST signal any serialization errors that occur.

(This change will automatically cause item 5 in appendix F to disappear) 

2. In section 20, change

Stylesheet authors can use the xsl:output declaration to specify how they
wish result trees to be serialized. If a processor serializes a final result
tree, it *should* do so as specified by these elements; however, it is not
*required* to do so.

to

Stylesheet authors can use xsl:output declarations to specify how they
wish result trees to be serialized. If a processor serializes a final result
tree, it *must* do so as specified by these declarations.

3. Delete the note at the end of section 20, which refers back to section 2.9
for handling of serialization errors. Replace it with the following text:

&quot;If the processor performs serialization, then it must signal any serialization
errors that occur. These have the same effect as non-recoverable dynamic errors:
that is, the processor must signal the error and must not finish as if the
transformation had been successful.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8111</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-02-02 18:57:17 +0000</bug_when>
    <thetext>Need to change 

&quot;If the processor performs serialization, then it must signal any serialization
errors that occur. These have the same effect as non-recoverable dynamic errors:
that is, the processor must signal the error and must not finish as if the
transformation had been successful.&quot;

to

&quot;If the processor performs serialization, then it must signal any
*non-recoverable* serialization
errors that occur. These have the same effect as non-recoverable dynamic errors:
that is, the processor must signal the error and must not finish as if the
transformation had been successful.&quot;

With this change, the proposal was agreed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8669</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-03-10 21:12:28 +0000</bug_when>
    <thetext>This change has now been applied to the spec and the issue is therefore closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>