> Just a thought: It might be a Good Thing if Xerces exposed some of the
data
> validator classes (org.apache.xerces.impl.dv.xs) as a separate reusable
> utility library, so other applications could take advantage of them.
This is exactly why we introduced the interfaces in impl.dv package: to
make it usable directly by applications. You can take a look, starting from
SchemaDVFactory. The interfaces allow you to query built-in simple types,
or create your own types. Then you can validate data using these types.
There is also a sample in samples/simpletype, which shows how to use this
package.
> (If this is available through the PSVI APIs, great...
If you only want to get properties of the simple types (name, namespace,
facets, etc.), they will be available in PSVI shortly (in some months).
> Ideally, I'd like
> something that could be used independently of Xerces when a user wats to
> run Xalan with a different parser
That'd be after the PSVI and schema component APIs are standardized, and
after SAX/DOM/JAXP define how parsers expose PSVI.
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
Joseph
Kesselman/CAM/L To: [EMAIL PROTECTED]
otus@Lotus cc:
Subject: Expose schema datatype support?
04/10/2002
12:15 PM
Please respond
to xerces-j-dev
Just a thought: It might be a Good Thing if Xerces exposed some of the data
validator classes (org.apache.xerces.impl.dv.xs) as a separate reusable
utility library, so other applications could take advantage of them.
Specific example: I'm in the process of prototyping schema support in Xalan
(since XPath2 calls for it), and it would be Really Nice if I could take
advantage of the work you've already done. But it wouldn't be appropriate
for Xalan to reach deep into Xerces' guts. I could swipe your code and copy
it into our package, but I'd much rather find some way for us, and others,
to share it.
(If this is available through the PSVI APIs, great... Ideally, I'd like
something that could be used independently of Xerces when a user wats to
run Xalan with a different parser, but I'd settle for doing it via PSVI for
now, since we currently need the PSVI prototype in order to get the schema
type info in the first place..)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]