That API reads a datatype pattern and validates a value against it.

A datatype pattern is composed of :

  • an URI ("http://www.w3.org/2001/XMLSchema-datatypes").
  • a localname ("QName", "language", "base64Binary",...).
  • a list of params ("enumeration", "maxInclusive", "totalDigits",...).
  • a context composed of the base URI of the document and a map of prefix/uri namespaces.

Datatype pattern

Follow the steps in order to build a datatype pattern, and triggers the validation of a value against it :

  1. Fill the datatype pattern form or get an example.
  2. Click on "Show as XML", the datatype pattern is dumped.
  3. Fill the "Value" text input field.
  4. Click on "Validate", the validating message is dumped below.
prefill with an example :

Benefits

Explanation

Participation

All those developments are released under Cecill licence.

The project Forms Generator is available on a svn, contact me for more information. In the future, a project might be created on sourceforge.

Projects svg 3d, XSD to RelaxNG converter, javascript SAX parser, javascript RelaxNG validator, javascript datatype library are published on Google code. Project javascript SAX parser is also published on Github.

Requirements

In order to have javascript working as expected, please use last version of firefox.

For the applets, you will need to have java installed on your computer.