[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

Re:  MicroXML
2010/12/13 Uche Ogbuji <uche@ogbuji.net>
On Mon, Dec 13, 2010 at 9:35 AM, Amelia A Lewis <amyzing@talsever.com> wrote:
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

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:


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

  • References:

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


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.
First Name
Last Name
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.