<?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>28205</bug_id>
          
          <creation_ts>2015-03-12 13:09:41 +0000</creation_ts>
          <short_desc>[XSLT30] error handling for shadow attributes and/or static expressions</short_desc>
          <delta_ts>2015-10-29 09:50:41 +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>Member-only Editors Drafts</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="Abel Braaksma">abel.braaksma</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>118553</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-12 13:09:41 +0000</bug_when>
    <thetext>The section on shadow attributes (attributes starting with an underscore), 3.14.2 Shadow Attributes, does not define any error conditions.

The related section on Static Expressions doesn&apos;t define any either.

While it seems logical to raise typical XPath expression errors, it is unclear whether the raised errors should be dynamic errors or static errors. It makes sense to make them static errors, but most expressions have defined dynamic errors that would now occur in a static context (this is also true for expressions in xsl:use-when, a section that does not define error conditions either).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118555</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-12 15:35:21 +0000</bug_when>
    <thetext>There&apos;s a statement in 2.11

A dynamic error may also be signaled during the static analysis phase if the error occurs during evaluation of a static expression.

But I agree it&apos;s easily missed; and the &quot;may&quot; is unnecessarily indecisive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118580</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-13 08:35:49 +0000</bug_when>
    <thetext>Thw WG agreed that it would be appropriate to add clarification here. I have added a paragraph to the section on static expressions to indicate that both static and dynamic errors in a static expression result in the transformation failing with a static error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118581</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-13 08:46:01 +0000</bug_when>
    <thetext>As suggested by the WG, I have also added a note concerning errors in &quot;shadowed&quot; attributes (where @x and @_x are both present), to the effect:

The statement that the non-shadow attribute is ignored extends to error detection: it is not an error if the non-shadow attribute has an invalid value. However, this is not reflected in the schema for XSLT stylesheets, so validation using this schema may report errors in such cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>