Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: xml
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
XSLT transformations have one negative trait - it's hard to say when it goes wrong by not matching something. It happens quite often that the transformed XML changes, and the template stops matching some elements.
In maven, XSLT is likely to be used for alteration of configuration XMLs. Which means, these are usually copied, only a part is changed. When the above scenario happens, it leads to the configuration change not being applied.
For this use case, it would be nice to have an option in xml-maven-plugin to warn/fail/ignore when the resulting file is the same as the original.
<onIdenticalResult>fail</onIdenticalResult>
Thanks for considering, it would help a lot.