RE: Xalan-J, Xerces-J XInclude question

"Paulus Oliver" <[email protected]>
Newsgroups gmane.text.xml.general
Message-ID <84A11BD616F26A4184FCB6E1870EC0B1A80CCA@sbas065a.ww011.siemens.net>
Is there a possibility to set this feature in the commandline mode? I do
not use any java code (until now). My current call looks like this:

java -jar
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.
parsers.XIncludeParserConfiguration
parser\xalan-j_2_7_0-bin\xalan-j_2_7_0\xalan.jar -IN source\source1.xml
-XSL xsl\main.xsl -OUT target\result.xml 

-----Original Message-----
From: Peter McCracken [mailto:[email protected]] 
Sent: Dienstag, 14. Februar 2006 16:23
To: [email protected]
Subject: Re: Xalan-J, Xerces-J XInclude question

"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-uri
s

Hope that helps.

Cheers,
-- 
Peter McCracken
XML Parser Development
IBM Toronto Lab
Email: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [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.