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

improved writing ...

  • From: Arnaud Sahuguet <sahuguet@g...>
  • To: XML-DEV <xml-dev@l...>
  • Date: Mon, 16 Oct 2000 11:59:05 -0400

improved writing
Hi, 

I have been following the discussion about the "improved writing"
issue and I agree with most of the comments.  I have been working on
an implementation of a new query language for XML (Kweelt:
http://db.cis.upenn.edu/Kweelt/) and this meant to read and understand
specs such as XPath, XSLT, namespaces and XML-Schemas.

The first comment I have to make is that the specs are ALWAYS skipping
the big picture.  Why do we need this new spec?  How does this new
spec fit in the current state of things?  Also, explaining the
rationale behind decisions would be useful.

The second comment is that the specs want to appear formal when they
are semi-formal at best. In most cases, the reader gets drowned in
pointless syntactic details while crucial ones are put under the rug.
If one wants to be formal, one should use the right formalism. In most
cases, English (or any so-called natural language) is not appropriate,
because it is ambiguous or subject to various interpretations.

Just as an example, for XPath and XSL-T, look at the descrption by
Phil Wadler.  The description uses denotational semantics to describe
the behavior of both languages.
http://www.cs.bell-labs.com/who/wadler/topics/xml.html#xsl-semantics
(*) A formal semantics of patterns in XSLT (to be read first)
(*) Two semantics of XPath

Some people will complain that one needs to understand mathematics to
read these two descriptions.  If this is the price to pay to have a
description that can be understood unambiguously, let us
pay for it. And don't get scared by the formalism and the mathematical
symbols. This is just syntax :-)
In a "A formal semantics of patterns in XSLT" the author gives a
user-friendly tutorial about the formalism used. See for yourself.

I can tell you as a developer, that the translation from denational
semantics to code (Java code in my case) is straight-forward. The
semantics already captures the right abstractions.  This formalism not
only provides a non-ambigous description of the what the language
should do, it also makes the job of implementing it much easier.

Regards,

Arnaud Sahuguet,
PhD candidate (Database Research Group, Univ. of Pennsylvania)
CTO Tropea Inc.

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.