aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2006-09-16 19:40:37 +0000
committerSimon Pepping <spepping@apache.org>2006-09-16 19:40:37 +0000
commit02e6fa274d498b2bd9f8a573c14066223abf98db (patch)
treec2f578ecb294f6db891b71171083cecd78a4fd6c /src
parent48ee2409f944833a81db9bfff30037a15270cbed (diff)
downloadxmlgraphics-fop-02e6fa274d498b2bd9f8a573c14066223abf98db.tar.gz
xmlgraphics-fop-02e6fa274d498b2bd9f8a573c14066223abf98db.zip
Added a comment about the cofiguration schema and some other means to determine configuration errors.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@446928 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/documentation/content/xdocs/0.92/configuration.xml41
-rw-r--r--src/documentation/content/xdocs/trunk/configuration.xml41
2 files changed, 82 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/0.92/configuration.xml b/src/documentation/content/xdocs/0.92/configuration.xml
index 9bc5bebc2..85cb8e25b 100644
--- a/src/documentation/content/xdocs/0.92/configuration.xml
+++ b/src/documentation/content/xdocs/0.92/configuration.xml
@@ -247,6 +247,47 @@
</renderer>]]></source>
</section>
</section>
+
+ <section>
+ <title>When it does not work</title>
+
+ <p>FOP searches the configuration file for the information it
+expects, at the position it expects. When that information is not
+present, FOP will not complain, it will just continue. When there is
+other information in the file, FOP will not complain, it will just
+ignore it. That means that when your configuration information is in
+the file but in a different XML element, or in a different XML path,
+than FOP expects, it will be silently ignored.</p>
+
+ <p>Check the following possibilities:</p>
+
+ <ul>
+ <li>The format of the configuration file has changed
+considerably between FOP 0.20.5 and FOP 1.0 and its beta versions. Did
+you convert your file to the new format?</li>
+
+ <li>The FOP distribution contains a schema for configuration
+files, at src/foschema/fop-configuration.xsd. Did you validate your
+configuration file against it? Add the following schema location to
+the <code>schema</code> element:
+
+<source><![CDATA[<fop
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:noNamespaceSchemaLocation=
+"http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/foschema/fop-configuration.xsd?view=co">]]>
+</source>
+
+and run the configuration file through a validating schema
+parser. Note that the schema cannot detect all errors, and that it is
+stricter about the order of some elements than FOP itself is.</li>
+
+ <li>Run FOP in debug mode (command line option
+<code>-d</code>). This makes FOP report which configuration
+information it finds. Check if FOP finds what you expect.</li>
+
+ </ul>
+
+ </section>
</body>
</document>
diff --git a/src/documentation/content/xdocs/trunk/configuration.xml b/src/documentation/content/xdocs/trunk/configuration.xml
index 99b92c7d3..c40a64de5 100644
--- a/src/documentation/content/xdocs/trunk/configuration.xml
+++ b/src/documentation/content/xdocs/trunk/configuration.xml
@@ -289,6 +289,47 @@
</p>
</section>
</section>
+
+ <section>
+ <title>When it does not work</title>
+
+ <p>FOP searches the configuration file for the information it
+expects, at the position it expects. When that information is not
+present, FOP will not complain, it will just continue. When there is
+other information in the file, FOP will not complain, it will just
+ignore it. That means that when your configuration information is in
+the file but in a different XML element, or in a different XML path,
+than FOP expects, it will be silently ignored.</p>
+
+ <p>Check the following possibilities:</p>
+
+ <ul>
+ <li>The format of the configuration file has changed
+considerably between FOP 0.20.5 and FOP 1.0 and its beta versions. Did
+you convert your file to the new format?</li>
+
+ <li>The FOP distribution contains a schema for configuration
+files, at src/foschema/fop-configuration.xsd. Did you validate your
+configuration file against it? Add the following schema location to
+the <code>schema</code> element:
+
+<source><![CDATA[<fop
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:noNamespaceSchemaLocation=
+"http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/foschema/fop-configuration.xsd?view=co">]]>
+</source>
+
+and run the configuration file through a validating schema
+parser. Note that the schema cannot detect all errors, and that it is
+stricter about the order of some elements than FOP itself is.</li>
+
+ <li>Run FOP in debug mode (command line option
+<code>-d</code>). This makes FOP report which configuration
+information it finds. Check if FOP finds what you expect.</li>
+
+ </ul>
+
+ </section>
</body>
</document>