Michael Glavassevich <mrglavas <at> ca.ibm.com> writes:

> 
> Paul Tomsic <ptomsic <at> yahoo.com> wrote on 08/08/2006 06:37:39 PM:
> 
> > i'm trying to set up xinclude support while validating
> > a XML doc against it's XSD.
> > 
> > neither the javax.xml.validation.Validator nor the
> > SchemaFactory (in jdk 1.4) support the
> > "http://apache.org/xml/features/xinclude";
> > 
> > i'm validating much like the SourceValidator example
> > that ships w/ xerces.  i see that the xml-api.jar that
> > ships w/ 2.8.0 has the method to "setXIncludeAware()"
> > but since the xml-api.jar isn't above the jdk in my
> > classpath, then i don't have access to those methods.
> > 
> > is there an alternate way to provide support for
> > xinclude while validating an xml against an xsd?
> 
> You could supply the Validator with a SAXSource containing an XMLReader 
> which has the XInclude feature [1] enabled.
> 

Unless I'm misunderstanding the original question, I think this is an issue of
overriding the xml-api that ships with the JDK.  If that's the case: Search on
"java endorsed standards override mechanism" in your favorite search engine, or
just check http://java.sun.com/j2se/1.4.2/docs/guide/standards/.  You can
replace the xml implementations that ship with your JDK with more recent
versions to get these features enabled.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to