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

Re: syntax


syntax for re
On Fri, 2002-04-26 at 15:10, Mike Champion wrote:
> 4/26/2002 2:41:04 PM, "Simon St.Laurent" <simonstl@s...> wrote:
> >I'm not expecting the entire world to use XML syntax - it's not ideal
> >for everything - but when it's time to present a canonical and
> >processable view of information, it's glorious stuff. 
> 
> I presume that most of us agree in principle.  There are a few
> smokestacks spoiling the glorious view, however:

Sure thing.  It's an industrial landscape, right? 

> 1- Not all syntax is canonical; you need something like the 
> InfoSet to say that single/double quotes don't matter, etc..

No, but XML is in some substantial sense more canonical than the
collection of all other formats.  Whether or not you use single/double
quotes is much less an issue than whether you use a binary format of
your own invention.
 
> 2 - Some syntax is sugar, but sugar is tasty: CDATA sections come to
> mind; they're nice for some things (escaping scripts being the
> canonical example) but they'll disappear from your syntax if you run 
> it through XSLT.

Sure.  I was looking at XML syntax as a canonical view on other
information in this quote.  For my own work, I'm  doing what I can to
preserve things like CDATA sections and single/double quote distinctions
in MOE, as I can find the time, but can't take responsibility for the
syntax damage other people's use of an Infoset view inflicts.

> 3 - There's a lot of inefficiency in that syntax, either for humans
> to produce, or to stuff down narrow bandwidths to small devices, or
> whatever.  

Yep.  That's where XML as a canonical view is handy.  "XML's a pain for
this!"  "Okay, fine.  Do what you want to do, but when it's time to ship
it to me, transform it into XML."

> 4 - For better or worse, many recent specs are not based on the 
> syntax  -- XPath/XQuery, SOAP, DOM (of course).  This produces
> an impedence mismatch.

Yep.  I can't do much about those except curse the dark.

> So, how do you deal with all this and still enjoy the view?

Pretty much what I do with the current state of politics in my home
country (USA).  Keep talking, and hope that things change over time.  I
do what I can to encourage people to use XML, and hopefully to use it in
ways that are easily shared.

I don't expect the world to change itself for me.  I hope that a few of
my ideas might take root in the world.

-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com


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.