From: SourceForge.net <no...@so...> - 2008-02-28 11:36:45
|
Bugs item #1864168, was opened at 2008-01-04 21:23 Message generated for change (Comment added) made by bodewig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=1864168&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: None >Status: Pending >Resolution: Invalid Priority: 5 Private: No Submitted By: Forest (forestcarlisle) Assigned to: Nobody/Anonymous (nobody) Summary: docs with different URI variable names should be similar Initial Comment: Consider the following control document <abc:a xmlns:abc='abc'><b/></abc:a> and the following two test documents <a xmlns='abc'><b/></a> <xyz:a xmlns:xyz='abc'><b/></xyz:a> although they are not identical, they should be similar because the only difference is the URI variable name. the URI variable name is not data but only a hint to the parser on how to abbreviate the URI value, which is data and which is always 'abc'. the problem is that the diff tool reports these both as differences as follows: [not identical] Expected namespace prefix 'abc' but was 'null' - comparing <abc:a...> at /a[1] to <a...> at /a[1] [different] Expected namespace URI 'null' but was 'abc' - comparing <b...> at /a[1]/b[1] to <b...> at /a[1]/b[1] See the attached example. ---------------------------------------------------------------------- >Comment By: Stefan Bodewig (bodewig) Date: 2008-02-28 12:36 Message: Logged In: YES user_id=113148 Originator: NO Hmm, in your control document the "b" element belongs to the default namespace, which is not "abc". So your first test document has a different namespace URI on it, not only a different prefix. If you look at the messages you see that it says "not identical" when it complains about the different prefixes (what you call URI variable names), which would still make the documents similar. It is the different URI that makes the two documents different. Seems as if XMLUnit was right. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377768&aid=1864168&group_id=23187 |