[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] XMLDecl version
On Tue, Nov 13, 2001 at 11:19:54AM -0500, Fred L. Drake, Jr. wrote:
> Robin Berjon writes:
> > it is unclear to me from the XML spec whether <?xml version='1'?> is
> > well-formed or not. At first glance it seems that Expat accepts it, while
> > xmllint croaks on it. The spec doesn't say whether version 1.0 is about
> > string equality or number comparison.
More precisely xmllint raises a warning:
orchis:~/XML -> ./xmllint tst.xml
tst.xml:1: warning: Unsupported version '1'
But still process it. I may have fixed this not that long ago. I think
it used to not be that kind. I never got a complain before about this but
since Blueberry (i.e. the next XML revision) is being started it was looking
like a good idea to relax this processing :-)
> Note the use of "may" -- it is *allowed* for a processor to do
> whatever it wants with something that does not conform, and I'll go so
> far as to infer that it isn't allowed to claim the document conforms
> with XML "1.0", but is not required to scream bloody murder.
It definitely complains,
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
email@example.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/