You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Paul Tomsic <pt...@yahoo.com> on 2006/08/09 00:37:39 UTC

xinclude ?

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?

thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: xinclude ?

Posted by Benjamin Armintor <ar...@gmail.com>.
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: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: xinclude ?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Paul Tomsic <pt...@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.

> thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

[1] http://xerces.apache.org/xerces2-j/features.html#xinclude

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org