Re: [xsl] junit test... for xslt2?

Subject: Re: [xsl] junit test... for xslt2?
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 06 Mar 2010 14:46:05 +0000
On Sat, Mar 06 2010 13:31:03 +0000, pgfearo@xxxxxxxxxxxxxx wrote:
...
> The XSLT <xsl:message> provides a useful method for outputing test
> results, especially when all xsl:message output from the test case set
> is aggregated into a single XML file,  as in CoherentWeb. A further

The issue that I always have with all-XSLT testing frameworks is that
they're good for the feel-good cases of testing that you get the right
output for the right input, but not so good for testing that you get the
right result for the wrong input if the right result is <xsl:message
terminate="yes"/>.

If the test framework is also XSLT, it's going to die when the
stylesheet under test dies.  I can't tell what CoherentWeb would do.

I'm a committer for both Juxy and XSpec.  XSpec is good, and my clients
that are primarily XSLT users prefer it because it's just XSLT, but Juxy
can cope with <xsl:message terminate="yes"> because, as a Java
application with Java and XML syntaxes for tests, it can catch the fact
that the transform terminated and then continue on to the next test.

Regards,


Tony Graham                         Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

Current Thread