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

Re: Adam Bosworth Article - what does "direct access" mean?


what does direct access mean
On Thursday 16 January 2003 19:28, W. E. Perry wrote:

> As for 'direct
> access', it means (as it always has since I started reading code in
> 1966):  conforming exactly to brittle expectations from a priori
> agreements, so that I don't have to parse it, lex it, analyze it,
> compare it to its history, or otherwise do in computerized processing
> what the human brain has to do in handling every bit of new input it
> ever encounters. Have any of the defenders of direct access here (are
> there any?) said anything to contradict that characterization?

I'll bite :-)

I say that's a purely relative statement. Whereas in a programming language 
we have to access our XML via various ungainly constructs, in XSLT it's a lot 
simpler because XSLT's data model is the XML data model so you don't need to 
do any conversions.

However, if you have data stored in the format of a serialised Java object it 
would be nice and easy to access from Java, but from XSLT you would need to 
do something with an HTTP-accessible converter along the lines of:

document('http://proxy.com/JavaToXML?url=http://data.com/my-java.ser&field=foo')

The expectations some XSLT has of an XML document is just as brittle as the 
expectation some Java code might have of a Java object. My "object.field" 
will break if the field is renamed in the same way that "/root/field" would. 

It's not about whether parsing happens or not - calling stream.readObject () 
in Java invokes a kind of parser to deserialise the object; the difference is 
in data model conversion. XML is a data model that the language XSLT is based 
around, while Java is based around a different one, so mapping from one to 
the other involves a bit more work.

>
> Walter Perry
>

ABS

-- 
A city is like a large, complex, rabbit
 - ARP

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.