Re: testing xml/xslt with perl?

Michael Ludwig <[email protected]> Mon, 24 Jan 2011 14:52:17 +0100
Newsgroups gmane.comp.lang.perl.xml
Message-ID <20110124135217.GI3292@wladimir>
Vaclav Barta schrieb am 24.01.2011 um 07:46 (+0100):
> On Sunday 23 January 2011 21:13:30 Michael Ludwig wrote:

> > Rather, use a technology that's devised for this specific purpose,
> > i.e. probably the assertion stuff such as Schematron, or even plain
> > XSLT. Again, it all depends on your specific requirements.
> Well, I think that for XML::DifferenceMarkup, canonicalization would
> be better than assertions - I want to ensure the whole DOM of my diff
> is as expected, not just parts of it. OTOH it's another step which can
> fail (especially as it's using an extra executable)... Is it possible
> to compare trees in XSLT?

Using XSLT, you could serialize the XDM instance, i.e. the XPath Data
Model for your document that XSLT operates on, to a text file that can
be easily diffed using plain diff against another version of the
document.

Again, withouth specific requirements, hard to say whether this is
suitable or not.

-- 
Michael Ludwig
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs