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

Re: Harold test suite: insert <![CDATA[...]]>?

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Wed, 20 Jul 2005 14:22:40 -0400
Message-ID: <42DE9670.8020404@metalab.unc.edu>
To: Bill Han <bill.han@oracle.com>
CC: www-xml-xinclude-comments@w3.org, pgrosso@arbortext.com, jmarsh@microsoft.com

Bill Han wrote:
> Hi,
>    For the test case of metafallbacktest2.xml, do you think their output 
> is correct output or the attached 2.log is correct? (you could replace 
> most '>' with '&gt;' in 2.log), or both?
>    In another words, if parse="text", should we insert <![CDATA[...]]> 
> or should we do something like C.3 in the XInclude Spec.?
>    Or, it's b/c of xpointer="element(/1)", we add <![CDATA[...]]> ? If 
> so, where I can find the spec.(XML and XInclude/XPointer) ?
> 

XInclude is defined in terms of the infoset. Thus you could use either a 
CDATA section or individual character escaping. Neither is required. 
Neither is forbidden. When comparing the expected output to the actual 
output, it's important that your comparison code ignore insignificant 
differences like this. It's also necessary to ignore attribute ordering, 
whitespace in tags, and similar things. You probably won't be able to do 
a direct byte-per-byte comparison and expect it to match.

-- 
´╗┐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 Wednesday, 20 July 2005 18:22:46 UTC

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