Perform a search on XInclude and xml:base and you will find that this problem 
is not unique to what we are doing. XML Schema processing also fails. Xerces 
provides a way to disable xml:base but I'm not sure about the native XML parser.

I will probably just need to modify XMLConfiguration to ignore xml:base or 
anything that starts with xml:.

Ralph


On Aug 9, 2013, at 8:37 PM, Gary Gregory wrote:

> Hello All:
> 
> I've enabled XInclude for XML configurations.
> 
> See https://issues.apache.org/jira/browse/LOG4J2-341
> 
> The side effect is that the XML configuration incorrectly complains:
> 
> 2013-08-09 23:33:16,085 ERROR appenders contains an invalid element or 
> attribute "xml:base"
> 2013-08-09 23:33:16,090 ERROR loggers contains an invalid element or 
> attribute "xml:base"
> 
> The "xml:base" attribute is part of the XML standards used by XInclude.
> 
> This seems to be due to the deeply custom XML processing (as opposed to using 
> JAXB for example) we implement.
> 
> Any ideas on fixing this issue and others of the same type this might 
> exemplify?
> 
> I wonder of Simone's alternate configuration model would suffer from this 
> issue?
> 
> Thank you,
> Gary

Reply via email to