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

RE: The use of XML syntax in XML Query


xml query doctype
Jonathan Robie wrote:
> >Go to http://www.w3.org/TR/xquery/ and search for "xmlns" to see what I
> >mean.
>
> Well, since I wrote that section, I would be very interested in
> hearing why
> you feel this is a reinvention of XML namespaces.

It's self-evident that this is a reinvention of XML namespaces (though
incomplete and underspecified). The fact that you wrote the section implies
that you think this is okay. I draw attention to the passage, because I
suspect that concerned individuals on xml-dev may want to express
alternative viewpoints.

It's a reinvention because the interpretation of things like
"xmlns:foo='http://whatever.com'" is defined in terms of the (XML-like)
syntax, rather than in terms of the Infoset (or some data model, e.g. XPath)
that's abstracted away from the syntactic interpretation of namespaces as
defined in the XML Names recommendation. This is just another symptom of
trying to use an XML-like syntax, rather than XML syntax itself.

The complexity and redundancy resulting from the XML-like syntax is
significantly compounded by the subsequent attempt to support things that
look like XML namespace declarations. Eventually you'll have to
cut-and-paste the entire XML Names recommendation, tweak it to show how it
interacts with "NAMESPACE foo=http://whatever.com", and then ask yourself if
XML Namespaces weren't already difficult enough to understand on their own.

Where does this end? Is it a goal to provide a syntactic superset of XML 1.0
+ XML namespaces, i.e. XML++? If so, then you've left out DOCTYPE
declarations.

This endeavor seems a little disproportionate compared to the benefit gained
by not having to put a root element around every query.

Evan


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.