XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] processing instruction with 'xml' target

<juanrgonzaleza@canonicalscience.com> wrote:
> I am not sure if when I write <?xml version="1.0"?> in a doc I am  
> writing
> a xml declaration or a PI.

If you write it at the start of an XML document it is an XML  
declaration.

If you write it anywhere else it is a well-formedness error,  
including at the start of an external entity since text declarations  
must supply an encoding attribute.

> The reply to above question depends of the arbiter used, the formal  
> spec
> or a real working implementation?
>
> Apparently my Mozilla based browser sometimes deals the xml  
> declaration as
> a PI. I obtain something like
>
> <message>
> xml processing instruction not at start of external entity
> </message>
>
> ... Sorry to say this but I never work with the formal
> spec, just with real implementations in browsers, tools...

Mozilla error messages are not normative. And just because many  
native English speakers say things like "If I was rich" doesn't make  
such utterances grammatically correct English.
-- 
犬 Chris Burdess
   "They that can give up essential liberty to obtain a little safety
   deserve neither liberty nor safety." - Benjamin Franklin




This is a digitally signed message part



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS