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

Re: MicroXPath proposal

  • From: John Cowan <cowan@ccil.org>
  • To: xml-dev@lists.xml.org
  • Date: Thu, 13 Jan 2011 12:52:38 -0500

Re:  MicroXPath proposal
mozer scripsit:

> [quoting James Clark]
> Data model.  The MicroXML specification should define a single,
> normative data model for MicroXML documents. It should be as simple
> possible:

[snip]

> * A name is a string. It can be split into two parts: a prefix, which
> is either empty or ends in a colon, and local name.

James's current version does not allow QNames as element names,
and allows only the fixed prefix "xml:" in attribute names.
I have extended it to allow general QNames in attribute names.
See http://blog.jclark.com/2010/12/more-on-microxml.html  .

> * An element probably also needs to have a flag saying whether it's an
> empty element.

The problematic HTML5 elements can be special-cased.

> It means you have also attribute and text nodes

Not necessarily, any more than the fact that elements have names requires
the model to provide "name nodes".  Note that James says the attributes
are a map rather than a list of attribute nodes, so attributes need not
be reified.

--
There is / One art                      John Cowan <cowan@ccil.org>
No more / No less                       http://www.ccil.org/~cowan
To do / All things
With art- / Lessness                     --Piet Hein


[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!

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.