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

Re: bohemians, gentry


Re:  bohemians
At 04:17 PM 12/4/2002 -0500, Norman Walsh wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>/ John Cowan <jcowan@r...> was heard to say:
>[...]
>| Again, the mere *provision* of typing metadata does not prevent such reuse.
>| However, if *standard tools* assume that the metadata is sound, then
>| transgressive reuse may indeed be made difficult.  Obviously, purely lexical
>| tools are not affected, but tools based on XQuery/XPath2/XSLT2 will not
>| be purely lexical in this sense (whereas XPath1/XSLT1 are).
>
>Taking the specific case of XQuery/XPath2/XSLT2, I'm not sure I see
>the problem. Given
>
><baz>
><foo n="1">Network Drive</foo>
><bar moo="0902">01803</bar>
></baz>
>
>I might write a template that matches those elements in a purely
>lexical way.
>
>   <xsl:template match="baz">...</xsl:template>

I agree with Norm.

XQuery is a strongly typed language, but it is designed to allow untyped 
and typed data to be used together gracefully. In XQuery, you do have to 
cast if data has a datatype that prohibits a specific kind of operation, 
but generally not if the data is untyped. The type information available in 
a query depends greatly on whether schemas have been imported into the query.

XQuery can work on well-formed XML, XML governed by DTDs, or XML governed 
by XML Schema. One query can involve data from all three kinds of XML.

I think John Cowan's text implies that there might be problems with reuse 
if there are datatypes in the data and XQuery is being used to process it. 
I would be interested in seeing some concrete examples that illustrate this 
point.

Jonathan


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.