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

Re: ANN: 'Testing XSLT' training course PDF available

Subject: Re: ANN: 'Testing XSLT' training course PDF available
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 14 Dec 2007 14:04:55 +0000
Re:  ANN: 'Testing XSLT' training course PDF available
On 14/12/2007, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> or if you prefer you can compare the output with expected results using
> deep-equal().

The problem with deep-equal() is that if the expected result is
hand-crafted then it's really sensitive to insignificant changes in
the output markup.

If the expected result is auto-generated, then how do you generate it
without reusing the code that you're testing...

Functions are easy to test, testing the output from templates markup
is harder, as you often need the entire input file.

My current recommended approach is to validate the output where
possible, and generate tests off of the input.  If you're generating
HTML use Selenium or Canoo.  If you're generating XML then generate
XPaths or XSLT.

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
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.