Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 54bb2b738197f974d30e8c29545074e7 > files > 8

jing-20091111-14.mga4.noarch.rpm

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Jing support for XML Schema Datatypes</title>
</head>
<body>
<h1>Jing support for XML Schema Datatypes</h1>

<p>Jing contains a built-in implementation of the W3C <a
href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2</a>
Recommendation. Jing follows the <a
href="http://www.oasis-open.org/committees/relax-ng/xsd.html">Guidelines
for using W3C XML Schema Datatypes with RELAX NG</a>.</p>

<p>The implementation of the <code>pattern</code> facet (and of some
of the more complicated datatypes) requires an implementation of
regular expressions as defined in <a
href="http://www.w3.org/TR/xmlschema-2/#regexs">XML Schema Part 2</a>.
Jing provides implementations based on:</p>

<ul>

<li>the standard Java <code>java.util.regex</code> package (included
in Java in versions 1.4 and later)</li>

<li><a href="http://xml.apache.org/xerces2-j/index.html">Xerces2-J</a></li>

</ul>

<p>Jing will automatically use the first of the above implementations
for which the necessary classes are available on your CLASSPATH.</p>

<p>You can interface a different implementation of XML Schema regular
expressions by implementing the interface
<code>com.thaiopensource.datatype.xsd.RegexEngine</code>.  Jing finds
an implementation of this interface using the service provider
technique: a JAR file containing an implementation of this interface
must contain a file
<code>META-INF/services/com.thaiopensource.datatype.xsd.RegexEngine</code>
that contains the name of class that implements the interface.  Jing
will automatically find and use the implementation if the JAR file is
added to the CLASSPATH.</p>

</body>
</html>