From: SourceForge.net <no...@so...> - 2009-06-09 11:16:49
|
Bugs item #2770386, was opened at 2009-04-17 11:13 Message generated for change (Comment added) made by bodewig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=2770386&group_id=23187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Java 1.2 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Urs Reupke (urskr) Assigned to: Nobody/Anonymous (nobody) Summary: Respect comments in prelude when checking for identity Initial Comment: Trying to verify that a document is identical after being run through an XSL-sheet, I get a green test despite my removing the leading comment prior to the transformation. This is a problem, because I want to write a java wrapper for my xsl sheet that removes comments in front of the root and adds them afterwards without modifying. I'd appreciate if you could look into this. ---------------------------------------------------------------------- >Comment By: Stefan Bodewig (bodewig) Date: 2009-06-09 13:16 Message: The current implementation of DifferenceEngine ignores everything between the DOCTYPE declaration (if any) and the document element, so the prelude is completely ignored. Just as is the case with bug 2758280 there may be code that relies on this behavior so we'd have to introduce yet another option if we wanted to change it. It is something I want to keep in mind for our ongoing (rather nascent) discussion of a new API for XMLUnit2 - it is unlikely to get fixed in the 1.x codebase. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=2770386&group_id=23187 |