Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Enternal entities & namespace [Thread Next] Re: Enternal entities & namespaceTo: NULL Date: 1/3/2006 5:33:00 PM * Jiri Netolicky wrote in comp.text.xml: >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 This seems a bug, Namespaces in XML 1.0 does not define well-formedness for external parsed entities, and a namespace-unaware processor would, when transforming the document to a standalone one as defined in XML 1.0, generate a namespace-well-formed document, so I don't really see a reason for generating a namespace error here. I'd file a libxml2 bug. >What is the right syntax to namespace defined in master document >will be known during parsing external entity? Well, declaring the prefix in the external entity would work and is certainly a better practise, but I don't think it's clearly required. -- Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
