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

Re: XML Redux

  • From: Dave Pawson <davep@dpawson.co.uk>
  • To: John Cowan <cowan@mercury.ccil.org>
  • Date: Wed, 16 Feb 2011 14:13:40 +0000

Re:  XML Redux
On Tue, 15 Feb 2011 16:17:12 -0500
John Cowan <cowan@mercury.ccil.org> wrote:

> Sounds good to me, and I like the name "Jaxon", which currently seems
> to be mostly used as a spelling variant of "Jackson".

> If you are going to break JavaScript compatibility, which is one of
> JSON's important features, then you might as well go a little further:
> 
> * The full range of IEEE 754 floats
> 
> * Language tagging in data
> 
> * XSD simple types
> 
> > For syntax, extend JSON with one additional kind of value - the
> > text element - which looks like an XML element today, except that
> > the attributes are replaced by a property of an element called its
> > metadata which may be any of the above kind of values - most often
> > a map, but not restricted.
> 
> I'd add 0.inf, -0.inf, and 0.nan syntax for infinities and NaNs, ISO
> 8601 syntax for gDate and gDateTime, and the ability to add XSD simple
> type names (prepended with "^^") and language tags (prepended with
> "@") to a JSON literal in either order.  N3 allows this on string
> literals only, but 32^^integer seems better to me than "32"^^integer.




{  authors: [
       {name: "Michael Kay", affiliation: "Saxonica"},
       {name: "Liam Quin", affiliation: "W3C"}
    ]
    abstract: <para { style : "bold" }>Here be some dragons</para>
    content: <section { numbers : [1,1,2] }><para>...</para></section>
   meta: [
     {dob: 1991-11-23T12:01Z ^^dateTime}
     {age: 23^^integer}
     {nick: Mike@en-UK}
   ] 
}



I think that's pretty readable?
do we need xsd:dateTime or would it be redundant?

-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


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