Re: testing xml/xslt with perl?
Vaclav Barta <[email protected]> Sun, 23 Jan 2011 16:41:20 +0100
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 23 January 2011 16:20:20 Michael Ludwig wrote: > Maurice Mengel schrieb am 23.01.2011 um 09:49 (-0500): > > Soon, I will have to write some xslt which transfers xml to xml. I did > > this before and testing for well-formedness and validity (xsd) didn't > > prevent me from building in subtle errors over time. So, I wonder if I > > should write tests this time, particularly if I should use Test::More. > If you're into Perl programming, you should definitely get acquainted > with Test::More. Real-life Perl frequently is, unfortunately, a I'm testing XML transformations in Perl (not XSLT, but XS on top of libxml2) with Test::More, comparing the transformation's result with a precomputed value, and it's a pain - different versions of libxml2 keep changing the generated text (mostly whitespace, but also namespace declarations and other "non-semantic" changes), breaking my tests. I must admit the pain hadn't been sharp enough to drive me to an alternative yet, :-) but if you know any, I certainly would like to hear about it... Bye Vasek -- http://www.mangrove.cz/ Open Source integration _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs