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
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--