xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulus Oliver" <oliver.pau...@siemens.com>
Subject RE: Xalan-J, Xerces-J XInclude question
Date Tue, 14 Feb 2006 16:03:39 GMT
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:peterjm@ca.ibm.com] 
Sent: Dienstag, 14. Februar 2006 16:23
To: general@xml.apache.org
Subject: Re: Xalan-J, Xerces-J XInclude question

"Paulus Oliver" <oliver.paulus@siemens.com> 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: peterjm@ca.ibm.com

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message