~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to doc/README.jaxp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
. gnu.xml.xpath.* ... JAXP XPath implementation
18
18
. gnu.xml.transform.* ... JAXP XSL transformer implementation
19
19
. gnu.xml.pipeline.* ... SAX2 event pipeline support
20
 
. gnu.xml.stream.* ... StAX pull parser implementation
 
20
. gnu.xml.stream.* ... StAX pull parser and SAX-over-StAX driver
21
21
. gnu.xml.util.* ... various XML utility classes
22
22
. gnu.xml.libxmlj.dom.* ... libxmlj DOM Level 3 Core and XPath
23
23
. gnu.xml.libxmlj.sax.* ... libxmlj SAX parser
30
30
 
31
31
. org.xml.sax.* ... SAX2 interfaces
32
32
. org.w3c.dom.* ... DOM Level 3 interfaces
 
33
. org.relaxng.datatype.* ... RELAX NG pluggable datatypes API
33
34
 
34
35
CONFORMANCE
35
36
 
139
140
   -Djavax.xml.stream.XMLInputFactory=gnu.xml.stream.XMLInputFactoryImpl
140
141
   -Djavax.xml.stream.XMLOutputFactory=gnu.xml.stream.XMLOutputFactoryImpl
141
142
 
 
143
  GNU SAX-over-StAX:
 
144
   -Djavax.xml.parsers.SAXParserFactory=gnu.xml.stream.SAXParserFactory
 
145
 
142
146
  libxmlj SAX:
143
147
   -Djavax.xml.parsers.SAXParserFactory=gnu.xml.libxmlj.sax.GnomeSAXParserFactory
144
148
 
172
176
Update: thread context variables have been introduced. This is very
173
177
untested though, libxmll therefore still has the single thread
174
178
bottleneck.
 
179
 
 
180
 
 
181
Validation
 
182
===================================================
 
183
 
 
184
Pluggable datatypes
 
185
---------------------------------------------------
 
186
Validators should use the RELAX NG pluggable datatypes API to retrieve
 
187
datatype (XML Schema simple type) implementations in a schema-neutral
 
188
fashion. The following code demonstrates looking up a W3C XML Schema
 
189
nonNegativeInteger datatype:
 
190
 
 
191
  DatatypeLibrary xsd = DatatypeLibraryLoader
 
192
    .createDatatypeLibrary(XMLConstants.W3C_XML_SCHEMA_NS_URI);
 
193
  Datatype nonNegativeInteger = xsd.createDatatype("nonNegativeInteger");
 
194
 
 
195
It is also possible to create new types by derivation. For instance,
 
196
to create a datatype that will match a US ZIP code:
 
197
 
 
198
  DatatypeBuilder b = xsd.createDatatypeBuilder("string");
 
199
  b.addParameter("pattern", "(^[0-9]{5}$)|(^[0-9]{5}-[0-9]{4}$)");
 
200
  Datatype zipCode = b.createDatatype();
 
201
 
 
202
A datatype library implementation for XML Schema is provided; other
 
203
library implementations may be added.
 
204