<?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>2815</bug_id>
          
          <creation_ts>2006-02-09 01:23:58 +0000</creation_ts>
          <short_desc>fn:nilled tests on non-validated element.</short_desc>
          <delta_ts>2006-06-22 13:01:55 +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.4</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Jerome Simeon">simeon</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8168</commentid>
    <comment_count>0</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-02-09 01:23:58 +0000</bug_when>
    <thetext>The fn:nilled function does not test for the presence of the xsi:nil
  attribute set to true, but for elements with the nilled PSVI propery
  (i.e., elements with xsi:nil set to true and which are declared in
  the schema as nillable).

  This means non-validated elements will always either return () or
  false. Many of those tests currently have true as expected
  result. Those tests are:

    fn-nilled-5
    fn-nilled-7
    fn-nilled-9
    fn-nilled-11
    fn-nilled-12
    fn-nilled-15
    fn-nilled-16
    fn-nilled-17

  It would probably be preferable to have the tests for which the
  expected result is true to be migrated to the part of the test suite
  which cover the validation feature.

  Keeping some of the test using fn:nilled over non-validated elements
  with the xsi:nil attribute, and returning false would probably be
  another good idea.

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8772</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-17 16:41:16 +0000</bug_when>
    <thetext>Jerome:

Thanks.  Changed expected outcome to &quot;false&quot;.  Will atempt to write a test
that uses &quot;validate lax&quot; to find a &quot;true&quot; outcome.  Please close bug if in agreement and when able to verify.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9547</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-05-01 18:48:16 +0000</bug_when>
    <thetext>In the case of fn-nilled-11 the expected result should be true, because it tests for not(nilled()). The result appears to have been changed mechanically to &quot;false&quot;.

And as Jerome says, it would be useful to have some tests for fn:nilled in a schema-aware environment, as the current tests are really only testing a trivial case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9559</commentid>
    <comment_count>3</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-05-02 18:13:09 +0000</bug_when>
    <thetext>Very True. Changed the value to &quot;true&quot;.  I will attempt to add extra test
for a schema aware environment.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10116</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-06-19 14:52:12 +0000</bug_when>
    <thetext>The expected results for fn-nilled=11 in 0.9.4 still say &quot;false&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10137</commentid>
    <comment_count>5</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-06-19 21:33:36 +0000</bug_when>
    <thetext>Michael:

No idea how this one slipped byy.  Corrected results.

Thanks,
Carmelo</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>