Karsten,
I am not sure that this would meet your needs but you might take a look at
the unit testing framework, xmlunit ( http://xmlunit.sourceforge.net/ )
which could used as is or wrapped. There is an XSLT comparison method and
several different types of xml comparison methods.
ciao,
Cam
Senior Software Engineer
Dictaphone Corp.
"Karsten Theis"
<[EMAIL PROTECTED] To: "XALAN Mailing List
(E-Mail)" <[EMAIL PROTECTED]>
rostep.de> cc:
Subject: XML-DIFF XSLT script
06/02/2003 04:14
AM
Please respond
to karsten.theis
Hi,
I'm looking for an XML-DIFF tool witch can be used to test the result of an
XSLT transformation. I want to call the tool from an automatic test and it
should compare the actual result against an XML-file.
The main problems of standart XML-DIFF tools are:
- can't be called from a batch programm or
- result can't be procesed by a batch programm
- show different IDs, but this is no error (I use generate-id(), therefor
IDs may differ between different runs on the same input)
My Idea was to write an XSLT, witch compares two XML-files. But I did not
find an easy way to process the XML-schema to find out witch elemets are
IDREFs.
So, if somebody has a good idea, please tell me.
Ciao, Karsten