Re: Xalan-J, Xerces-J XInclude question

Peter McCracken <[email protected]>
Newsgroups gmane.text.xml.general
Message-ID <OFEEE0FD29.1D633852-ON85257115.0053CDB1-85257115.005481FA@ca.ibm.com>
"Paulus Oliver" <[email protected]> wrote on 02/14/2006 10:11:35 
AM:

> Is there a possibility to omit Xerces-J to include xml:base attributes
> if Xinclude is used?

Hi Oliver,

Adding xml:base attributes is required by the XInclude specification [1] 
in some situations, which is why they're there.

However, your problem is a common one.  Xerces has a feature
"http://apache.org/xml/features/xinclude/fixup-base-uris" (see [2])
which will omit the xml:base attributes when set to false.

[1] http://www.w3.org/TR/xinclude/#base
[2] 
http://xerces.apache.org/xerces2-j/features.html#xinclude.fixup-base-uris

Hope that helps.

Cheers,
-- 
Peter McCracken
XML Parser Development
IBM Toronto Lab
Email: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.