This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3341 - Expected result for fn-id-12 and fn-id-13 is missing the namespace
Summary: Expected result for fn-id-12 and fn-id-13 is missing the namespace
Status: VERIFIED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 13:18 UTC by Alberto Massari
Modified: 2006-06-22 11:23 UTC (History)
0 users

See Also:


Attachments

Description Alberto Massari 2006-06-16 13:18:20 UTC
The source file is

<IDS xmlns = "http://www.w3.org/XQueryTest/ididrefs"
       xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation = "http://www.w3.org/XQueryTest/ididrefs id.xsd">
  <elementwithid-1 anId = "id1"/>
  <elementwithid-2 anId = "id2"/>
  <elementwithid-3 anId = "id3"/>

so all the elements are in the default namespace http://www.w3.org/XQueryTest/ididrefs.
But the results for fn-id-12 and fn-id-13 are

<elementwithid-3 anId3="id3"/>

and 

<elementwithid-4 anId4="id4"/>

Both are missing a xmlns="http://www.w3.org/XQueryTest/ididrefs" namespace definition
Comment 1 Carmelo Montanez 2006-06-19 18:18:37 UTC
Alberto:

Thanks for pointing this out.  Added missing namespace.

Carmelo
Comment 2 Alberto Massari 2006-06-21 09:56:38 UTC
Hi Carmelo,
the new result files contain (in this case fn-id-13.txt, but also fn-id-12.txt is wrong)

<elementwithid-4 xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:ids = "http://www.w3.org/XQueryTest/ididrefs" anId4="id4"/>

Apart for the extra xmlns:xs definition (that doesn't do any harm) the problem is that http://www.w3.org/XQueryTest/ididrefs is bound to the prefix "ids"; so either elementwithid-4 has to be rewritten as ids:elementwithid-4 or the xmlns:ids="..." has to be changed into xmlns="..." in order to be the valid result of the query.
Comment 3 Carmelo Montanez 2006-06-21 17:39:04 UTC
Alberto:

This been a long one.  All results should be in agreement with their
corresponding namespace.

Thanks,
Carmelo
Comment 4 Alberto Massari 2006-06-21 19:00:49 UTC
Unfortunately, it is not yet finished :-(

fn-id-12: the attribute is anId="id3", not anId3="id3"
fn-id-13: the attribute is anId="id4", not anId4="id4"
Comment 5 Carmelo Montanez 2006-06-21 19:16:21 UTC
Alberto:

Changed again ....

This must the bug with the record on refusing to close!