Thank you very much.  You were very helpful!

James Strachan wrote:

> Hi Laura
>
> ----- Original Message -----
> From: "Laura Hatcher" <[EMAIL PROTECTED]>
> > I am so glad that you responded to my email.  I have been asking around
> about
> > this for a while.  I had discovered this solution, but I had some
> questions
> > that were unanswered by an documentation.  Does this work for including
> Schema
> > within Schemas?  And if so how would you declare the entity with in your
> > schema?
>
> I think it does, though you'd best test it first ;-)
>
> Actually recently Stefan Graeber patched dom4j's SchemaParser in the
> org.dom4j.datatype package to be able to support including schemas within
> schemas so the EntityResolver mechansim does work for this area as well.
>
> Take a peek at the code in CVS to see it in action.  Also the
> DatatypeDocumentFactory.loadSchema() method (in the same package) might be
> interesting for you.
>
> You can register your own EntityResolver implementation via
> SAXReader.setEntityResolver().
>
> The included schema can use any string you like, e.g. foo/bar.xsd and you
> just test for the right string in the systemID parameter in your
> EntityResolver and load it through whatever mechanism you wish, a directory,
> a URL, classpath etc..
>
> James
>
> >
> > Thanks very much,
> > Laura
> >
> > James Strachan wrote:
> >
> > > Not as such. Though you can register your own EntityResolver (its an
> > > interface from SAX) which you can use to load resources (DTDs, Schemas
> etc)
> > > from wherever you wish.
> > >
> > > If you look at the full javadoc at http//dom4j.org at the class
> > > org.xml.sax.EntityResolver there's a an example of how to use it to
> create
> > > your own mechanism to load resources.
> > >
> > > James
> > > ----- Original Message -----
> > > From: "Laura Hatcher" <[EMAIL PROTECTED]>
> > > To: "dom4j" <[EMAIL PROTECTED]>
> > > Sent: Monday, February 04, 2002 4:24 PM
> > > Subject: [dom4j-user] set schema directory
> > >
> > > > Is there a mechanism using dom4j to set a directory in which to locate
> > > > schemas for validation?
> > > >
> > > > Laura
> > > >
> > > >
> > > > _______________________________________________
> > > > dom4j-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/dom4j-user
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to