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

Re: Doc vs. Data


pull oriented
G. Ken Holman scripsit:

> Consider the transformation of ...
> 
>   <para>Does this <emph>really</emph> work?</para>
> 
> ... to ...
> 
>   <p>Does this <b>really</b> work?</para>
> 
> ... in a pull-oriented environment ... I'm not convinced it can be done 
> easily, if at all in a way that could be easily maintained.

Counterargument:  it's easy to do in a text file environment, and
essentially all text file APIs are pull-oriented.

> My hackles were raised when XPath 2 was based on W3C Schema thus requiring 
> me not to look at my document as text but to look at it as typed data ... 

By no means.  If you do not supply type information (via XML Schema or
otherwise) to an XPath 2 implementation, it types all attributes as
anySimpleType and all elements as anyType, which is essentially equivalent
to typelessness.

> I posit the documentation-oriented people in our community, and I include 
> myself, have been disenfranchised by W3C Schema and XPath 2.

Relax.  Things are not as bad as they seem.  What XPath 2 does make
difficult is the way of the XPath implementer, who has to do the whole
standard; but nothing says the user has to use every feature.

> In my own work all of my DTDs have been converted to RELAX-NG and I have 
> *yet* to feel the need in any of my text work to embrace W3C Schema from 
> the perspective of the best way to solve my text processing requirements.

Relaxer and related tools do interpret annotated RELAX NG schemas in
such a way that they represent the needs of data-oriented XML.

-- 
John Cowan  jcowan@r...  http://www.ccil.org/~cowan
Does anybody want any flotsam? / I've gotsam.
Does anybody want any jetsam? / I can getsam.
        --Ogden Nash, _No Doctors Today, Thank You_

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.