W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > January 2007

Validate Component

From: Alex Milowski <alex@milowski.org>
Date: Wed, 31 Jan 2007 09:39:49 -0800
Message-ID: <28d56ece0701310939g15b2a8b6wb951d99bcfb9ca57@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
Name: [p:]validate


The validate component runs some form of schema validation assessment on
a document.  It operates in one of two modes:  assertion or annotation.  In
assertion mode, a document must be valid or the component fails.  In
mode, the schema validation is run and the results may be contributed to
the data model.  The default mode is 'assertion'.

The document(s) on the 'schema' port may be specified in four ways:

   * a single schema document that should be used to validate the
   * a sequence of schema documents that, as a collection, are
     considered the set of "known" schema documents.
   * a single document containing a catalog of namespaces and
     schema locations.
   * an external catalog of implementation defined schema definitions.

It is an error if the schema language is not recognized or if the language
parameter does not match the schema language used by the
schema documents on the 'schema' port.

A catalog of namespaces can be specified by the following vocabulary

   <c:schema namespace="xs:anyURI" href="xs:anyURI"/>*

An implementation my choose whether or not to support any particular
schema language.

[ed. note: I would like to say the XML Schema 1.0 is required.  Another
  option is to say something is required but there is no specific language
  required.  That would be non-interoperable but support implementors
  who only want to do a particular schema language (e.g. RelaxNG vs
  XML Schema). ]


   source:  A single document
      The document to validate.
   schema:  A sequence of documents.
      A representation of the schema.


   result:  A single document
       The validate document

   mode: optional
      Specifies the validation mode and must be either 'assertion' or
   language: optional
      A URI value indicating the schema language that is expected.

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Wednesday, 31 January 2007 17:40:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:41 UTC