|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML-aware programming language? - was Re: Ontolgies, Mappings
This clearly deserves a thread of its own ... On Tue, 30 Nov 2004 22:17:48 -0800, Daniela Florescu <dflorescu@m...> wrote: > > http://xl.informatik.uni-heidelberg.de/index2.shtml > > This experiment raised a lot of positive comments. But in the same time > the idea of having an XML oriented programming language raised the following > comments from Tim Bray: > >. That premise is silly on the face of it: here are > two reasons why: ... > . If this hasn't > happened after decades in the relational world, why would we expect it > to happen in the XML world? The impedance mismatch between programming objects and relational databases has been a serious issue for ordinary mortals for decades. One approach that largely failed was OODBMS; one could at least make a plausible case that the opposite approach of making programing languages more RDBMS-friendly could have worked better. > â?¢ The notion that there is an "XML data model" is silly and > unsupported by real-world evidence. ...other than the fact that most actual users of XML do so via an API or a tool such as XSLT/XQuery that is based on an abstract XML data model rather than the concrete syntax? But that is a permathread on which reasonable people disagree. > Empirical evidence: I can point to a handful of different popular > XML-in-Java APIs each of which has its own data model and each of which > works. So why would you think that there's a data model there to build > a language around? Arguably the different flavors of the Infoset/DOM/Xpath/XQuery data model have much more in common than not. Their differences tend to come down to: - how namespaces are represented (as declaration nodes a la the XML syntax or as element/attribute nodes that "just know" their namespace. - how "syntax sugar" is represented (or not). The mismatch between the DOM and XPath data models (e.g. CDATA sections are represented in DOM but not XPath) causes immense pain for implementers who try to support both and monumental frustration for users who wonder what crack we were all smoking when we dreamed this up :-) - how datatypes are represented or not represented. > I still don't understand why something like this would be silly. I guess the non-silly answer (according to http://www.tbray.org/ongoing/When/200x/2003/12/31/HeWantsEverything anyway) -- we just have to get used to the fact that programming languages, database systems, and data interchange formats are three different things and learn to work with all three comfortably and (presumably) build code that efficiently builds domain-specific mappings across them. That's quite practical advice in the short run, but it seems unnecessarily pessimistic over the longer term. There is a LOT of interesting stuff going on ... XL of course, but also: XQuery itself (and XSLT for that matter) are Turing-complete programming languages ... E4X http://xml.coverpages.org/ECMAScript-XML.html Microsoft Xen / X Omega http://www.microsoft-watch.com/article2/0,4248,1529588,00.asp If the programming environment is integrated with some XML data model, then database persistence is less of an issue now that there are a wide range of special-purpose XML databases available and the mainstream RDBMS products are moving to support XML natively. Anyway, I certainly agree that this is not at all a silly topic. It would be interesting to hear from the other side ...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








