[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ANN: X-Hive/DB 7.0 Released

  • To: mike@s...
  • Subject: Re: ANN: X-Hive/DB 7.0 Released
  • From: David Carlisle <davidc@n...>
  • Date: Thu, 20 Oct 2005 13:08:37 +0100
  • Cc: xml-dev@l...
  • In-reply-to: <200510201151.MAA01682@n...> (mike@s...)
  • References: <200510201151.MAA01682@n...>

xml comparision
> I also found a large number of tests where I had to apply much looser rules
> to comparison of test results than those prescribed, for example by
> stripping XML declarations at the start of a file or newlines at the end.
> Again, I'd be interested whether you had the same experience.

Certainly that was my experience, in the test report for xq2xsl
at
http://monet.nag.co.uk/xq2xml/XQTSReport.html

I make the following comments

    Comparison:

    XML: The result of is not serialised. The expected result is parsed
    using doc() and compared using deep-equal(), if this fails, text
    nodes are normalized with normalize-space(), then deep-equal() is
    retried (Use of normalize-space is noted in the comment field in
    this case). 

    Fragment: The result is not serialised. The expected result is
    wrapped in an element node so it can be parsed by an XML parser, the
    child nodes of this element are then compared using deep-equal (and
    optionally normalize-space, as for the XML comparision). 

    Text: The result of is not serialised, its string value is compared
    (optionally after using normalize-space()) with the expected result,
    which is read using XSLT unparsed-text() function. The comment field
    records if normalize-space() was used. 

    Errors are currently NOT compared. If (any) error is expected, (any)
    error raised is considered to be a test pass. (Due to limitations of
    the test harness): This should be fixed in time for a future version
    of the test suite 




Looking in the comment fields shows that white space normalization  was
applied in a _lot_ of cases. It's possible that some of these are
masking problems in xq2xsl, but I suspect most are due to spurious white
space in the expected results. In half a dozen or so cases I had to
change the Catalog to change the comparator _not_ to use XML (as the
published result file isn't well formed) This is for 0.7 but I had to
make similar changes for 0.6, basically I updated as need be if there
was a bugzilla entry indicating what fix was going to be applied.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.