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

Unit tests for XSLT templates & stylesheets (was RE: n

Subject: Unit tests for XSLT templates & stylesheets (was RE: not wellformed contents of xsl:template)
From: "Gareth Sylvester-Bradley" <gareth.sbradley@xxxxxxxxxxxxxxx>
Date: Tue, 7 Aug 2001 15:54:02 +0100
unit test template
Mike Kay said:

> It's not a quick fix. It's a serious structural change. Trying to make a
> substantial design change to any program by means of a "quick fix" is
> guaranteed to create an unreliable and unmaintainable mess, and
stylesheets
> are no exception.
>
> (Actually, changing programs I don't understand is something I generally
> prefer to avoid, it almost invariably breaks them.)

Particularly this last comment and my own experiences with maintaining XSLT
makes me wish there was a neat way of writing unit tests for individual
templates and stylsheets as a whole. I would be interested to hear what
other list members experiences or thoughts on unit testing XSLT are.

I use JUnit for unit testing Java code, but I guess I'm initially thinking
along the lines of a guideline which suggests a "unit-test" mode for
stylesheets and XML test-data islands to work on (or references to external
test data documents), but I haven't yet had time to think all the issues
through and perhaps an external framework (i.e. not written in XSLT) is
required.

Regards,
Gareth




*************************************************************************
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*************************************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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