<?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>2938</bug_id>
          
          <creation_ts>2006-02-25 00:07:33 +0000</creation_ts>
          <short_desc>what of the Base URI is set by the implementation?</short_desc>
          <delta_ts>2006-05-17 22:13:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>0.8.6</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="Marc Van Cappellen">marc.van.cappellen</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8449</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-02-25 00:07:33 +0000</bug_when>
    <thetext>base-URI-8.xq seems to expect that the Base URI is not set.
However, what if the implementation always defines this static context 
component?

We believe that requiring to raise error FONS0005 is too strict.

Thanks,
Marc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8456</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-02-26 22:16:45 +0000</bug_when>
    <thetext>We might have a similar sceanrio for Functions\AccessorFunc\BaseURIFunc.xq

In http://www.w3.org/TR/xquery/#id-documentConstructors we read in 4.a:
base-uri is taken from base URI in the static context. If no base URI is 
defined in the static context, the base-uri property is empty.

What of the implementation sets the base URI?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8482</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-02-28 15:08:14 +0000</bug_when>
    <thetext>As you point out, an implementation-may override the default value of &quot;none&quot; for
the Base URI component (in C.1 Static Context Components).

Perhaps these tests should include a conditional based on the value of
fn:static-base-uri?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8484</commentid>
    <comment_count>3</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-02-28 15:21:01 +0000</bug_when>
    <thetext>Yes, I think that&apos;s probably the way to make this type of test work for both 
implementatons that set and don&apos;t set the Base URI.

For example, change the query as such that the &quot;computed base uri&quot; is compared 
against fn:static-base-uri(). The test can then either result in an error 
(FONS0005) or be positive and result in &quot;true&quot;

Thanks,
Marc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8720</commentid>
    <comment_count>4</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-14 22:27:53 +0000</bug_when>
    <thetext>Correct.  Changed query to use conditional against computed base uri
and allowed for either value (&quot;true&quot; or error).  Please close the bug when
able to verify and if in agreement.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9841</commentid>
    <comment_count>5</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-17 22:13:52 +0000</bug_when>
    <thetext>verified and looks ok</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>