|
Re: making mozilla's xml to behave in a non-standard way: msg#00018mozilla.devel.xml
Axel Hecht wrote: none wrote:
I do not want to enter into religious war. Section 2.10 clearly states "In editing XML documents, it is often convenient to use "white space" ..." Look, in C++ grammar, or Java grammar for example any program should begin with comments or declarations. But the white space handling in both specs lets you put whites. I do not know which MS/Sun/whatsover developper launched the fashion of rejecting white spaces at the beginning of XML documents, but clearly it is a way to make some brand reject other implementations. Then, if you want to stuck to 2.8 ( and play with words ): ----------------------------------------------------------------- 2.8 Prolog and Document Type Declaration [Definition: XML documents SHOULD begin with an XML declaration which specifies the version of XML being used.] For example, the following is a complete XML document, well-formed but not valid: <?xml version="1.0"?> <greeting>Hello, world!</greeting> and so is this: <greeting>Hello, world!</greeting> ------------------------------------------------ RFC 2119: 3. SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course. ------------------------------------------------------------- So if you want to promote "mozilla-XML" versus "non-mozilla-XML" you should not accept whites before the <?xml.. ( the capitals are copy-pasted from rfc ) Olivier Axel |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: making mozilla's xml to behave in a non-standard way: 00018, Axel Hecht |
|---|---|
| Next by Date: | MAKE MONEY NOW ( IT WORKS JUST READ): 00018, MAURICIO |
| Previous by Thread: | Re: making mozilla's xml to behave in a non-standard wayi: 00018, Axel Hecht |
| Next by Thread: | Re: making mozilla's xml to behave in a non-standard way: 00018, Matthew Wilson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |