<?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>29938</bug_id>
          
          <creation_ts>2016-10-16 06:21:38 +0000</creation_ts>
          <short_desc>[XSLT30] Suggestion to drop XTDE1370 and XTDE1380 to bring them in line with XDM 3.0</short_desc>
          <delta_ts>2016-10-27 16:46:40 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>127807</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-10-16 06:21:38 +0000</bug_when>
    <thetext>This bug applies to our description of fn:unparsed-entity-uri and fn:unparsed-entity-public-id.

We currently say this for these errors (descr. is the same for both):

[ERR XTDE1370] It is a dynamic error if $node, or the context item if the second argument is omitted, is a node in a tree whose root is not a document node.


We explain these functions in terms of the dm:unparsed-entity-uri and the dm:unparsed-entity-public-id accessors. According to the DM, these accessors return an empty sequence if applied to something other than a document node.

Since our functions find the root of the current tree, this root can be a document node, or something else. In the latter case we ought to raise these errors.

I propose to drop these errors. I don&apos;t see a use for them and I think it is good to be more in line with the DM. Furthermore, less errors is usually better :).

We may consider to return the empty sequence (change of signature) or the empty string (with current signatures). I don&apos;t see a problem for either, but have a preference for returning the empty sequence (in line with the DM).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127865</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-19 17:35:36 +0000</bug_when>
    <thetext>I fail to see the benefit in this change. These are very rarely used functions, and even if this change gave a notable improvement in usability, which I doubt, it would be hard to justify the cost to us of changing the spec, the cost to implementors of changing the implementation, and the cost to users of testing that their code still works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127890</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-10-21 02:04:48 +0000</bug_when>
    <thetext>These are valid points. I don&apos;t know how often these are used in practice and I figured it best to bring them in line with other specs (principal of least surprise).

But I get your point on effort vs reward (apart from your last point: we&apos;d be dropping an error scenario that wouldn&apos;t have run in XSLT 2.0 to begin with, so no backwards compat issues would arise).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127891</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-10-21 02:05:35 +0000</bug_when>
    <thetext>Ok, that wasn&apos;t entirely clear, in so many words I meant: let&apos;s keep the status quo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127971</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-27 16:46:40 +0000</bug_when>
    <thetext>The WG decided to take no action.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>