<?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>16232</bug_id>
          
          <creation_ts>2012-03-05 15:33:15 +0000</creation_ts>
          <short_desc>[FO30] min, max , deep-equal, index-of</short_desc>
          <delta_ts>2012-05-15 15:29:38 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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>65017</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-03-05 15:33:15 +0000</bug_when>
    <thetext>It is correctly stated in the &quot;Properties&quot; sections that these functions are context-dependent, because they depend on the default collation and statically known collections component of the static context.

Because they can also operate on xs:date/xs:dateTime/xs:time, these functions also have a dependency on the implicit timezone component of the dynamic context.

This should probably be noted in the &quot;Properties&quot; section, since it is a static error if a partial function application or named function reference refers to a function that is dependent on the dynamic context.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65021</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-03-05 16:35:26 +0000</bug_when>
    <thetext>distinct-values also depends on the implicit timezone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65810</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-20 10:50:06 +0000</bug_when>
    <thetext>I have added the dependency on implicit-timezone to the properties of these five functions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65843</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-03-20 15:40:52 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65864</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-20 18:33:54 +0000</bug_when>
    <thetext>The WG endorsed this resolution. Marking as closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66222</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-03-29 08:14:59 +0000</bug_when>
    <thetext>I think there may be yet more dependencies which should be noted.

Any function which takes an explicit $collation parameter depends not only on the static context (available collations), but also on the dynamic context (dynamic base URI), since the argument may be a relative URI which would require resolution against the dynamic base URI.

I&apos;m assuming that when the collation is implicit, the default collation is always resolved to an absolute URI (against the static base URI), and therefore there is no dependency on the dynamic base URI in this case.

I&apos;m of the opinion that the dependency on the dynamic base URI is unfortunate.  Since the available collations are part of the static context, and therefore the collation URIs are known statically, it seems strange that collation URIs would not be resolved against the static base URI (as in F&amp;O 1.0) rather than the dynamic base URI.


The functions format-dateTime, format-date and format-time depend on the dynamic context default language, deffault calendar and default place properties.

The functions doc, doc-available, collection, uri-collection, unparsed-text, unparsed-text-available and unparsed-text-lines depend on the dynamic base URI (in addition to the dependencies already listed in the specification).


The specification often says that a funciton depends on the &quot;base uri&quot;, rather than &quot;dynamic base uri&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66226</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-03-29 08:25:09 +0000</bug_when>
    <thetext>See also Bug 16565.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66308</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-03-31 12:11:27 +0000</bug_when>
    <thetext>I have changed the function catalog schema to rename &quot;base URI&quot; as &quot;dynamic base URI&quot; (there are no functions that depend on static base URI).

I have added the additional dependencies as suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67747</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-15 15:29:38 +0000</bug_when>
    <thetext>Marked fixed resolved by decision of the WG today</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>