[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XMLDecl version


libxml unsupported 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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.