[Home] [By Thread] [By Date] [Recent Entries]
On 08/03/10 10:22, Andrew Welch wrote:
Ultimately though, for checking the "correctness" of the result of a transform, I think you just need to execute XPaths against it, which are more tolerant of subtle changes in the output. That was the idea behind xchecker, which then became running xquery and transforms to overcome the limitations of what xpath can check.
That seems like the poor mans xml diff. It should be fairly straight forward with xpath alone? Your additions seem to address test groups rather than simple tests? Allowing transforms or xqueries to be just makes it easier to test what you need (say you need a variable) and construct a better failure message, and means you can test however you like.. comparing xml if you really wanted to, or just simple xpaths. Yes, I can see that.
So far I'm steering clear of Schema aware transforms. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
|

Cart



