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

Re: S-expressions vs. XML

Re:  S-expressions vs. XML
> You don't have an isomorphism yet, since the range
> of g (hence the domain of f) is only a subset of all
> S-expressions over atoms and strings.  But that's fixable.

I knew I shouldn't have deleted the first part of my message.

I believe most folks are being sloppy.  They don't really mean a 1:1
mapping, they mean:  "why have XML syntax since we can easily map that
into s-expr's"

So I consider the problem solved. :)

> Then h(x) includes the element node "<bar a='b'>world</bar>"
> and the text node "!".  There's no f :: S-Exp -> XML that
> can satisfy h(x) = h(f(g(x))), since g(x) is just the
> string 'hello'.

I was going for well-formed XML documents, not fragments.
The XML1.0 spec doesn't talk about fragments.

But if you really want all that stuff, then push things down a level,
defining top-level forms of element, node, and progn. :)


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.