This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Unit tests for XSLT templates & stylesheets (was RE: not wellformed contents of xsl:template)


i would imagine using something like schematron would be helpful in this
situation.

cheers, jim


----- Original Message -----
From: "Gareth Sylvester-Bradley" <gareth.sbradley@adv.sonybpe.com>
To: <xsl-list@lists.mulberrytech.com>
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]