jing man page on OpenSuSE
[printable version]
JING(1) http://www.thaiopensource. JING(1)
NAME
jing - Validator for RELAX NG in Java
SYNOPSIS
jing [-i] [-c] [-s] [-t] [-C catalogFile] [-e encoding] {RNGFile}
{XMLFile...}
OPTIONS
The following options are available:
-c
The schema uses RELAX NG Compact Syntax.
-C catalogFile
Defines a XML catalog file according to the XML Catalogs Committee
Specification 06 Aug 2001[1]. Generally, this is needed to resolve
URIs into local paths.
-e encoding
Uses the encoding to read the schema.
-i
Disables checking of ID/IDREF/IDREFS. By default, Jing enforces the
constraints imposed by RELAX NG DTD Compatibility with respect to
ID/IDREF/IDREFS.
-s
Outputs the RELAX NG grammar after validation. Useful when
validation with the compact syntax.
-t
Prints the time used by Jing for loading the schema and for
validation.
Jing uses a vendor-independent pluggable datatypes API[2] that allows
datatype libraries to be added at runtime and be interoperable with
Java-based RELAX NG implementation that supports the API.
Jing also includes an implementation of a datatype library for the W3C
XML Schema Part 2 datatypes. There is a separate document about Jing's
datatype[3] describing this implementation and how to use it.
OTHER SCHEMA LANGUAGES
In addition to RELAX NG (both XML and compact syntax), Jing has support
for some other schema languages. This support is less mature than the
RELAX NG support. These schema languages all use XML and Jing can
autodetect using the namespace URI of the document element. However, if
you use the -c option, no autodetection will be performed and the
schema will be parsed as RELAX NG compact syntax.
Jing has support for the following schema languages:
Schematron 1.5[4]
Jing's implementation is not based on the reference Schematron 1.5
implementation. It is implemented partly in XSLT and partly in
Java. This implementation requires that the Schematron elements be
properly namespaced using the namespace URI
http://www.ascc.net/xml/schematron. Jing can report correct line
numbers both for errors in the instance and errors in the schema
(including XPath errors). It can use either Saxon or Xalan as its
XSLT engine. Jing is distributed with Saxon, because JDK 1.4
includes an old version of Xalan, which does not work properly for
this application, and it is tricky to prevent the JRE using this
version. A command-line option of -d enables diagnostics. A
command-line option of -p phase specifies the phase to use. Both
reports and failed assertions are considered errors. The Schematron
schema is subject to rather more rigorous checking (using a RELAX
NG schema) than with the reference Schematron implementation.
W3C XML Schema[5]
Jing provides support for W3C XML Schema using a wrapper around
Xerces2-J[6]. Any xsi:schemaLocation and
xsi:noNamespaceSchemaLocation hints in the instance are ignored.
Namespace Routing Language (NRL)[7]
The XML Namespaces Recommendation allows an XML document to be
composed of elements and attributes from multiple independent
namespaces. Each of these namespaces may have its own schema; the
schemas for different namespaces may be in different schema
languages. NRL is an experimental language for specifying how the
schemas for the different namespaces are to be composed in order to
allow validation of the complete document. The implementation in
Jing fully supports the language described in the specification.
Subschemas can be in any of the languages supported by Jing
(including, recursively, NRL). Jing does not yet support the schema
option for W3C XML Schema subschemas, which would allow more than
one schema URI to be specified.
Modular Namespaces (MNS)[8]
MNS is the predecessor to NRL, and should be considered
obsolescent. MNS support will disappear in a future release.
SEE ALSO
http://code.google.com/p/jing-trang/
Project homepage and source code
http://www.thaiopensource.com/relaxng/jing-manual.html
This manual in HTML format
AUTHORS
James Clark <jj@thaiopensource.com>
Thai Open Source Software Center Ltd
Developer
Thomas Schraitle <toms@opensuse.org>
Created manpage
COPYRIGHT
Copyright © 2001, 2002, 2003, 2008, 2009, 2010, 2011 Thai Open Source
Software Center Ltd
See the file http://www.thaiopensource.com/relaxng/copying.txt for
copying permission.
This document was compiled from
http://www.thaiopensource.com/relaxng/jing-manual.html.
NOTES
1. XML Catalogs Committee Specification 06 Aug 2001
http://www.oasis-open.org/committees/entity/spec-2001-08-06.html
2. pluggable datatypes API
http://www.thaiopensource.com/relaxng/pluggable-datatypes.html
3. Jing's datatype
http://www.thaiopensource.com/relaxng/jing-datatypes.html
4. Schematron 1.5
http://xml.ascc.net/schematron
5. W3C XML Schema
http://www.w3.org/TR/xmlschema-1/
6. Xerces2-J
http://xerces.apache.org/xerces2-j/
7. Namespace Routing Language (NRL)
http://www.thaiopensource.com/relaxng/nrl.html
8. Modular Namespaces (MNS)
http://www.thaiopensource.com/relaxng/mns.html
http://code.google.com/p/j 11/13/2011 JING(1)
[top]
List of man pages available for OpenSuSE
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|