A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/683.html
Document ID: 683
Branch: main
Language: default
Name: Validation (unchanged)
Document Type: Document (unchanged)
Updated on: 9/13/05 9:22:45 PM
Updated by: Pier Fumagalli
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 4610 bytes (previous version: 2507 bytes)
Content diff:
(54 equal lines skipped)
<p>Optionally, one could also specify the <em>grammar </em>of the schema to
use.
This will force the Validator to try and parse the schema using a specified
language (for example Relax NG, or the XML Schema Language) and should be
used
--- whenever</p>
+++ whenever.</p>
+++ <p>Finally, a SAX <tt>ErrorHandler</tt> can optionally be specified when
+++ obtaining a <tt>ValidationHandler</tt>. This will receive notification of
all
+++ inconsistancies in the notification and the ValidationHandler will throw
+++ <tt>SAXException</tt>s only when the error handler is configured to do
so.</p>
+++
+++ <h1>A note on grammars</h1>
+++
+++ <p>For grammars written in XML, wherever possible their name will be the
+++ namespace URI associated with their root element. At time of writing the
well
+++ known grammars are the following:</p>
+++
+++ <table>
+++ <tbody>
+++ <tr>
+++ <th>
+++ <p>NAME</p>
+++ </th>
+++ <th>
+++ <p>NAMESPACE</p>
+++ </th>
+++ <th>
+++ <p>VALIDATOR INTERFACE FIELD NAME</p>
+++ </th>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.schematron.com/">ISO Schematron</a></td>
+++ <td><tt>http://purl.oclc.org/dsdl/schematron</tt></td>
+++ <td><tt>Validator.GRAMMAR_ISO_SCHEMATRON</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.xml.gr.jp/relax">RELAX Core</a></td>
+++ <td><tt>http://www.xml.gr.jp/xmlns/relaxCore</tt></td>
+++ <td><tt>Validator.GRAMMAR_RELAX_CORE</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.xml.gr.jp/relax">RELAX Namespace</a></td>
+++ <td><tt>http://www.xml.gr.jp/xmlns/relaxNamespace</tt></td>
+++ <td><tt>Validator.GRAMMAR_RELAX_NS</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.relaxng.org/">RELAX NG</a></td>
+++ <td><tt>http://relaxng.org/ns/structure/1.0</tt></td>
+++ <td><tt>Validator.GRAMMAR_RELAX_NG</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://xml.ascc.net/schematron/">Shematron 1.5</a></td>
+++ <td><tt>http://www.ascc.net/xml/schematron</tt></td>
+++ <td><tt>Validator.GRAMMAR_SCHEMATRON</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.thaiopensource.com/trex/">TREX</a></td>
+++ <td><tt>http://www.thaiopensource.com/trex</tt></td>
+++ <td><tt>Validator.GRAMMAR_TREX</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.w3.org/XML/Schema">XML Schema</a></td>
+++ <td><tt>http://www.w3.org/2001/XMLSchema</tt></td>
+++ <td><tt>Validator.GRAMMAR_XML_SCHEMA</tt></td>
+++ </tr>
+++ <tr>
+++ <td><a href="http://www.w3.org/TR/REC-xml">XML DTD</a></td>
+++ <td>
+++ <p>N/A (grammar identifier <tt>http://www.w3.org/TR/REC-xml</tt>)</p>
+++ </td>
+++ <td><tt>Validator.GRAMMAR_XML_DTD</tt></td>
+++ </tr>
+++ </tbody>
+++ </table>
+++
+++ <p>xxx</p>
+++
</body>
</html>
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes