On Wed, Nov 11, 2009 at 04:54:23PM +0100, Daniel Leidert wrote:
Consider this example:
!DOCTYPE foo [
!ENTITY comment 'comment id=comment.xml /'
When I run `xmllint --noout --noent --relaxng foo.rng foo.xml' I
| namespace warning : Namespace default prefix was not found
| element comment: Relax-NG validity error : Did not expect element comment
But `jing foo.rng foo.xml' succeeds and does not complain. I have to add
the xmlns attribute to comment for xmllint to succeed. Is this correct
or an issue in xmllint? I wouldn't have expected, that I have to add the
namespace to this entity. I thought it gets directly replaced.
libxml2 being designed as an editing toolkit, and before XML
namespaces does not handle well this kind of namespace and entities
mixups. Best is to add the namespace declaration in ten entity, yes.
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
xml mailing list, project page http://xmlsoft.org/