|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: MicroXML
- From: Uche Ogbuji <uche@ogbuji.net>
- To: Amelia A Lewis <amyzing@talsever.com>
- Date: Mon, 13 Dec 2010 10:57:51 -0700
2010/12/13 Uche Ogbuji <uche@ogbuji.net>
On Mon, 13 Dec 2010 16:01:11 +0700, James Clark wrote:
> I wrote a post describing a fairly minimal subset of XML:
>
> http://blog.jclark.com/2010/12/microxml.html
Nice. I like the way that it copes with namespaces; I think it may
improve upon Michael Kay's suggestion, even.
I have a problem with it.
How do I tell whether it's safe to use my uXML parser instead of my
(heavier) XML 1.0 + Namespace in XML + XML:Base + XML:ID + whatever
parser?
XML declaration not allowed. XML 1.0 and uXML are placed in the
position of both claiming to be the canonical format indicated by the
absence of a declaration.
I've only had a chance to skim ìXML (that would be a wikkid name :) ), but I intend to read more thoroughly when I get a longer break today. I hope my comments are not complete rubbish as a result.
With what Liam and Henri said about magic numbers, and I agree, how about just:
<!DOCTYPE microxml>
No need for BOM since MicroXML is UTF-8 only, though I suspect there may be much discussion on that point. The MicroXML decl *must* be at the beginning (I agree the need for magic number trumps convenience for cut&paste. One can always add a step in the toolchain to fix misplaced microxml declarations.)
I think the above does not violate HTML5? (Not sure). I understand that HTML compat rules out:
<?microxml?>
Silly me. I had HTML5 on the brain.
<!DOCTYPE microxml>
breaks XML 1.0 compat.
-- Uche Ogbuji http://uche.ogbuji.net
Weblog: http://copia.ogbuji.net Poetry ed @TNB: http://www.thenervousbreakdown.com/author/uogbuji/ Founding Partner, Zepheira http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji Articles: http://uche.ogbuji.net/tech/publications/ Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji http://www.google.com/profiles/uche.ogbuji

[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|
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
| 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.
|
|