Re: [xml] problems with entity in default namespace declaration
- From: Daniel Veillard <veillard redhat com>
- To: Lars Weber <lars digiterror net>
- Cc: xml gnome org
- Subject: Re: [xml] problems with entity in default namespace declaration
- Date: Sat, 31 Dec 2005 09:46:59 -0500
On Thu, Dec 22, 2005 at 02:24:40PM +0100, Lars Weber wrote:
Greetings,
does anyone know what could be the reason for xmllint outputting
test.rdf:8: parser warning : xmlns: URI &foo; is not absolute
<foo xmlns="&foo;"
^
when confronted with the following document
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY foo "http://foo.org/">
<!ENTITY bar "http://bar.org/">
]>
<foo xmlns="&foo;"
xmlns:bar="&bar;">
</foo>
?
When I exchange the entity reference &foo; with http://foo.org/ I don't
get the above warning.
bugzilla this, this should not happen. But in general using entities
for namespace values is of poor taste.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]