<?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>14995</bug_id>
          
          <creation_ts>2011-11-29 15:01:09 +0000</creation_ts>
          <short_desc>[FO30] context dependence</short_desc>
          <delta_ts>2011-12-13 18:01:52 +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>Functions and Operators 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="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>60621</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-11-29 15:01:09 +0000</bug_when>
    <thetext>The functions serialize, format-time, format-date and format-dateTime each have one variant which is marked context-dependent and one which is marked context-independent. e.g.

fn:serialize

    The one-argument form of this function is </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60636</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-11-29 18:26:45 +0000</bug_when>
    <thetext>For format-date() etc I think it is correct, but for reasons that are difficult to defend. 

In hte case of format-date(), etc, the two-argument forms of these functions depend on the default language, calendar, etc, but this dependency is described in the spec as &quot;implementation-defined&quot; behaviour rather than &quot;context-dependent&quot; behaviour. If we made default language and calendar properties of the dynamic context, then the functions would become context-dependent. Which would have the unfortunate consequence that you wouldn&apos;t be able to partially apply them.

For fn:serialize(), I think the spec appears to be wrong: I can&apos;t see any reason why the single-argument function is described as context-dependent (though of course the result is in many ways implementation-dependent...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60646</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-11-29 22:10:50 +0000</bug_when>
    <thetext>I&apos;m a little uneasy about this.  As you know, I&apos;d like the defaults to be part of the context.  Were this to be adopted at some point in the future, it would be a breaking change due to the reasons you outline.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61064</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-12-06 22:23:17 +0000</bug_when>
    <thetext>The WG decided that the default language, calendar, and place used by the format-date|time functions should be made explicit properties of the dynamic context. [F+O has been changed accordingly; the definitions are yet to be added to the language book].

The properties of fn:serialize() have been corrected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61489</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-12-13 16:31:12 +0000</bug_when>
    <thetext>Fixed as proposed in the last call draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61496</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-12-13 18:01:52 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>