[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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' <?xml version='1'?> ^ <?xml version="1"?> <doc/> orchis:~/XML -> 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 -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@r... | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|