From: Vincent Hennebert Date: Mon, 9 Nov 2009 16:34:47 +0000 (+0000) Subject: Moved declaration of xml:space attribute from to in the XML... X-Git-Tag: fop-1_0~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1bc82acecdfd8d7f59641ec40e969c47cc740bd6;p=xmlgraphics-fop.git Moved declaration of xml:space attribute from to in the XML Schema, to reflect changes from rev. 834020. Moved validation of intermediate XML to testParserToIntermediateFormat method, so that any validation error is returned by Junit instead of being swallowed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@834135 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd index c0bdd281b..4e0b7d115 100644 --- a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd +++ b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng-content.xsd @@ -20,8 +20,6 @@ targetNamespace="http://xmlgraphics.apache.org/fop/intermediate" xmlns:mf="http://xmlgraphics.apache.org/fop/intermediate"> - @@ -68,7 +66,6 @@ - diff --git a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd index 93aacb62d..9de37a81a 100644 --- a/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd +++ b/src/documentation/intermediate-format-ng/fop-intermediate-format-ng.xsd @@ -20,6 +20,8 @@ targetNamespace="http://xmlgraphics.apache.org/fop/intermediate" xmlns:mf="http://xmlgraphics.apache.org/fop/intermediate" xmlns:nav="http://xmlgraphics.apache.org/fop/intermediate/document-navigation"> + @@ -61,6 +63,7 @@ + diff --git a/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java b/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java index c246488e1..826a5c777 100644 --- a/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java +++ b/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java @@ -35,7 +35,6 @@ import javax.xml.transform.dom.DOMSource; import org.custommonkey.xmlunit.XMLTestCase; import org.w3c.dom.Document; - import org.xml.sax.SAXException; import org.apache.commons.io.IOUtils; @@ -95,7 +94,6 @@ public abstract class AbstractIntermediateTestCase extends XMLTestCase { env.saveDOM(intermediate, new File(outputDir, getName() + ".1" + getIntermediateFileExtension())); } - validate(intermediate); } /** {@inheritDoc} */ @@ -172,6 +170,7 @@ public abstract class AbstractIntermediateTestCase extends XMLTestCase { * @throws Exception if the test fails */ public void testParserToIntermediateFormat() throws Exception { + validate(intermediate); Source src = new DOMSource(intermediate); Document doc = parseAndRenderToIntermediateFormat(src); if (outputDir != null) {