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

Re: RE: XQuery and DTD/Schema?


Re: RE:  XQuery and DTD/Schema?
At 05:19 PM 7/6/2002 -0400, Mike Champion wrote:
>7/6/2002 4:25:02 PM, Jonathan Robie 
><jonathan.robie@d...> wrote:
>
> >
> >And if you use the static typing, this error will not occur.
>
>If you use static typing throughout your organization, with a standard
>infrastructure so that the types mean exactly the same thing, and you
>impose the same on your entire supply chain and customer base, THEN
>this error will not occur.  No disagreement from me!
>
>There would, however,  be no need for XML in that environment :~)

Are you saying that XML is not needed in any environment where instances 
are required to validate against a given schema?

Using static typing establishes that your query is safe as long as the data 
validates. You don't have to require the rest of the organization to use 
static typing - the static type check is just a way of ensuring that your 
query is typesafe.

If the rest of the organization is giving you data that does not validate, 
then you will not be able to use typesafe functions. You could still use 
queries based on well-formed XML as long as you are quite certain that all 
the schemas use an element called 'price' that contains the numbers you 
woiuld want to sum. But you don't have a contract with your data producers 
if you don't have validated data.

Incidentally, you can either parse their data against your schema, or 
import their schema into the query. Either way, you can establish that the 
query and the data match.

Why do you need XML in this environment? For all the traditional reasons:

- Exchanging information in open, easily parsed formats
- Validation - establishing a contract between data producers and consumers
- Crossing platform boundaries
- Crossing programming language boundaries
- XML messaging

I don't see why you don't need XML in this environment.

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.