[xsl] Poor man's test suite

Subject: [xsl] Poor man's test suite
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Wed, 19 Dec 2007 09:51:35 +0100
Hi list

Normally a stylesheet don't need that much testing, the input is
known. But when trying to make a stylesheet like my "Identity
transformation for XSLT 2.0", the stylesheet must be able to handle
any well-formed input no matter how weird.

I am not used to that kind of heavy testing. What do we have of
"official" collections of all sorts of XML documents for testing
purposes and how can we be sure that they really cover all the
weirdness like XML declarations looking like the following:


or markup inside CDATA sections in elements in comments inside PIs, etc?

Do we have any tutorials about where we most often have the problems,
what to look for and be beware off et cetera? Even a checklist or 10
rules of thumb could be of great help?

Jesper Tverskov

Current Thread