You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by "George T. Joseph" <gt...@peakin.com> on 2000/01/12 05:16:13 UTC

Patches for XMLParser.java and XSchemaValidator.java

This set of changes allows you to use the EntityResolver.resolveEntity() callback to intercept the 'xmlns' attribute and supply your
own Schema InputSource.  It works just as it does for an external DTD subset.  Rather than appending the diffs, I put them on an ftp
server...
ftp://ftp.peakin.com/pub/xerces/XMLParser.diff
ftp://ftp.peakin.com/pub/xerces/XSchemaValidator.diff

WARNING:  To make this work, I had to change XSchemaValidator.loadSchema() so that it accepts an org.xml.sax.InputSource rather than
a String.  It gets called only from one place in XMLParser so I didn't think this would be a big deal.

The diffs are against XMLParser v1.4 and XSchemaValidator v1.3 and encompass the earlier changes I posted to this list.

george


Re: Patches for XMLParser.java and XSchemaValidator.java

Posted by Ted Leung <tw...@sauria.com>.
The 12/17 draft includes a "thing" called schemaLocation that
instance documents can use to specify how schemas are located.
The wording explicitly allows something like what this patch does.
Since we're a little ways away from conforming to the 12/17 draft,
I'm inclined to accept this set of patches, but they are based on
one patch that I've rejected.  I'd be happy to have this go in if
it were based on today's top of trunk.

George, could you please get me diffs for this and I'll integrate
them.

Ted
----- Original Message -----
From: "George T. Joseph" <gt...@peakin.com>
To: "xerces-dev" <xe...@xml.apache.org>
Sent: Tuesday, January 11, 2000 8:16 PM
Subject: Patches for XMLParser.java and XSchemaValidator.java


> This set of changes allows you to use the EntityResolver.resolveEntity()
callback to intercept the 'xmlns' attribute and supply your
> own Schema InputSource.  It works just as it does for an external DTD
subset.  Rather than appending the diffs, I put them on an ftp
> server...
> ftp://ftp.peakin.com/pub/xerces/XMLParser.diff
> ftp://ftp.peakin.com/pub/xerces/XSchemaValidator.diff
>
> WARNING:  To make this work, I had to change XSchemaValidator.loadSchema()
so that it accepts an org.xml.sax.InputSource rather than
> a String.  It gets called only from one place in XMLParser so I didn't
think this would be a big deal.
>
> The diffs are against XMLParser v1.4 and XSchemaValidator v1.3 and
encompass the earlier changes I posted to this list.
>
> george
>
>