Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Enternal entities & namespace

From: Jiri Netolicky <netolish@-----.--->
To: NULL
Date: 1/3/2006 5:22:00 PM
Hi and happy new year to all.

I have a problem with including external entities
with namespace.

I have this master xml wrapper file:

<?xml version="1.0" ?>

<!DOCTYPE log4j:eventSet SYSTEM "log4j.dtd"
     [<!ENTITY data SYSTEM "log.xml">]>

<log4j:eventSet version="1.2"
xmlns:log4j="http://jakarta.apache.org/log4j/">
     &data;
</log4j:eventSet>

and file "log.xml" looks like this:

<log4j:event logger="cz.web.ContextListener"
timestamp="1136214913389" level="INFO" thread="ScannerThread">
<log4j:message><![CDATA[Destroying context]]></log4j:message>
<log4j:NDC><![CDATA[WebModule]]></log4j:NDC>
</log4j:event>

<log4j:event logger="cz.sap.SapFacade"
timestamp="1136214913391" level="INFO" thread="ScannerThread">
<log4j:message><![CDATA[Cleaning up]]></log4j:message>
<log4j:NDC><![CDATA[WebModule]]></log4j:NDC>
</log4j:event>

When I manualy replace "&data;" with the content of "log.xml"
the validation "xmllint -valid -noout" is OK. But when I try
to include "log.xml" as external entitity, validator reports
error:

log.xml:1: namespace error : Namespace prefix log4j on event is not defined

Also I have tried to remove namespaces from master xml, log.xml
and log4j.dtd and then the validation (with external entity) is OK.

What is the right syntax to namespace defined in master document
will be known during parsing external entity?

Thanks, Netolish


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent