Subject: Re: [xsl] Unit tests for XSLT templates & stylesheets (was RE: not wellformed contents of xsl:template) From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Tue, 7 Aug 2001 15:46:26 +0100 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Unit tests for XSLT templates, Gareth Sylvester-Bra | Thread | Re: [xsl] not wellformed contents o, Lisa Rupe |
RE: [xsl] Whitespace in XSL not app, Julian Reschke | Date | RE: [xsl] Removing tags automatical, Oleg Tkachenko |
Month |