W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > July 2005

Re: element() scheme should return Element Node only or any kind of node?

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Thu, 21 Jul 2005 18:58:47 -0400
Message-ID: <42E028A7.4060500@metalab.unc.edu>
To: Bill Han <bill.han@oracle.com>
CC: Paul Grosso <pgrosso@arbortext.com>, www-xml-xinclude-comments@w3.org, Oleg Tkachenko <oleg@tkachenko.com>, Jonathan Marsh <jmarsh@microsoft.com>

Bill Han wrote:
> So, your metafallbacktestwithxpointer.xml test case is okay, but 
> metafallbacktest5.xml is wrong.
> The differnce between these two (or by href attr) is one has 
> <xi:fallback>fallback text</xi:fallback>, another one has 
> <xi:fallback><test>some data</test></xi:fallback> Your element(/1/1) 
> returns "fallback text" string and <test>some data</test> element 
> respectively.
> I don't know what you meant by "catalog". I downloaded test suite from 
> http://www.w3.org/XML/Test/XInclude/ (110032004 version).

None of these tests are wrong. It is becoming obvious that your test 
harness is broken. It is making assumptions about the layout of the test 
suite that are simply not true. The test catalog is found in the file 
testdescr.xml which is at the URL 

This file maps expected input to expected output (or lack thereof for 
error tests). The presence or absence of files with particular names in 
the results directory means nothing unless they are referenced in 

´╗┐Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
Received on Thursday, 21 July 2005 22:58:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:36 UTC