RE: [xsl] ANN: 'Testing XSLT' training course PDF available

Subject: RE: [xsl] ANN: 'Testing XSLT' training course PDF available
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 14 Dec 2007 14:15:28 -0000
> I would ideally like - Have the original stylesheet (which is 
> undergoing testing) *unmodified*.
> Write a unit testing stylesheet (which is like 1 unit test), 
> which can test some aspect of the original stylesheet (like a 
> function), or possibly test the whole stylesheet as a unit 
> (and use deep-equal() function to compare the expected output 
> with the received output - but this seems not possible 
> without inserting a named template in the main stylesheet).

You can always put the test template in a module that includes or imports
the stylesheet under test, if that's what you prefer. (I prefer to put it in
the main stylesheet so it doesn't get mislaid...)

Michael Kay

Current Thread