From: GitHub <no...@gi...> - 2016-01-13 05:05:09
|
Branch: refs/heads/master Home: https://github.com/xmlunit/xmlunit Commit: 1f808d507bd28ac30479a8796fcdbad0aa2c0abb https://github.com/xmlunit/xmlunit/commit/1f808d507bd28ac30479a8796fcdbad0aa2c0abb Author: Philip Benischke <phb...@us...> Date: 2016-01-12 (Tue, 12 Jan 2016) Changed paths: M xmlunit-core/src/main/java/org/xmlunit/input/CommentLessSource.java Log Message: ----------- fixed xslt stylesheet version / not tested! I had an Exception using this class because an Oracles oracle.xml.jaxp.JXSAXTransformerFactory. org.xmlunit.ConfigurationException: oracle.xml.xslt.XSLException: <Line 1, Column 58>: XML-22009: (Error) Attribute 'version' not found in 'stylesheet'. org.xmlunit.transform.Transformation.transformTo(Transformation.java:188) org.xmlunit.transform.Transformation.transformToDocument(Transformation.java:220) org.xmlunit.input.CommentLessSource.<init>(CommentLessSource.java:35) org.xmlunit.builder.DiffBuilder.wrap(DiffBuilder.java:344) org.xmlunit.builder.DiffBuilder.build(DiffBuilder.java:330) de.ec4u.adapter.util.XMLUtil.sameXMLDocuments(XMLUtil.java:51) de.ec4u.adapter.message.ResponseBuilderTest.test3_Retrieve(ResponseBuilderTest.java:141) Caused by: javax.xml.transform.TransformerConfigurationException: oracle.xml.xslt.XSLException: <Line 1, Column 58>: XML-22009: (Error) Attribute 'version' not found in 'stylesheet'. oracle.xml.jaxp.JXSAXTransformerFactory.newTemplates(JXSAXTransformerFactory.java:402) oracle.xml.jaxp.JXSAXTransformerFactory.newTransformer(JXSAXTransformerFactory.java:291) org.xmlunit.transform.Transformation.transformTo(Transformation.java:172) As the Execption indicates there is the version element missing. A Quote from the XSLT specification: "An xsl:stylesheet element must have a version attribute, indicating the version of XSLT that the stylesheet requires." see http://www.w3.org/TR/xslt#section-Stylesheet-Structure Please be aware that i have NOT tested the solution! Kind regards, Philip Commit: d7def838881a98b332508b80507e332eb48add83 https://github.com/xmlunit/xmlunit/commit/d7def838881a98b332508b80507e332eb48add83 Author: Stefan Bodewig <ste...@fr...> Date: 2016-01-13 (Wed, 13 Jan 2016) Changed paths: M xmlunit-core/src/main/java/org/xmlunit/input/CommentLessSource.java Log Message: ----------- Merge pull request #47 from phbenisc/patch-1 fixed xslt stylesheet version Compare: https://github.com/xmlunit/xmlunit/compare/cbc94f739d45...d7def838881a |