[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Unit tests for XSLT templates & stylesheets (was R
i would imagine using something like schematron would be helpful in this situation. cheers, jim ----- Original Message ----- From: "Gareth Sylvester-Bradley" <gareth.sbradley@xxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, August 07, 2001 3:54 PM Subject: Unit tests for XSLT templates & stylesheets (was RE: not wellformed contents of xsl: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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|