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 
http://dev.w3.org/cvsweb/~checkout~/2001/XInclude-Test-Suite/testdescr.xml?content-type=text/plain&only_with_tag=HEAD

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 
testdescr.xml.

-- 
´╗┐Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
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