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

RE: XQuery and DTD/Schema?

  • To: "Betty Harvey" <harvey@e...>
  • Subject: RE: XQuery and DTD/Schema?
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Tue, 2 Jul 2002 16:41:22 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcIiIMFsg82LJknlRkyuJLPGY/Tj0wAAF3Hw
  • Thread-topic: XQuery and DTD/Schema?

flux xquery
> -----Original Message-----
> From: Betty Harvey [mailto:harvey@e...] 
> Sent: Tuesday, July 02, 2002 4:33 PM
> To: Dare Obasanjo
> Cc: xml-dev@l...
> Subject: RE:  XQuery and DTD/Schema?


XQuery is still a working draft which means it has several months to
years before it stabilizes. The answers to your questions are in flux
but here are some attempts at answers. 

> That doesn't really answer my question.  Maybe I phrased it 
> wrong.  Is a W3C Schema required in order to use XQuery.  

No, but the primitive types in XQuery will be those from W3C XML Schema
(i.e. analogous to how the primitive types in XPath are number, boolean
and string)

> I 
> would imagine that Oracle and other XML aware database will 
> allow DTD's for validing and importing and exporting XML data 
> in and out.

I guess so, the future plans of our competitors is not my purvey. 

> I can include the W3C datatypes within a DTD, an XML parser 
> just won't validate that the datatypes are valid using an 
> 'off the shelf' XML parser.

I'm not sure what this statement means. Are you suggesting validating a
W3C XML schema with a DTD or...? 

> A lot of documents don't require datatyping (although they 
> are nice to have they aren't imperative).

True. 

> Does XQuery require a W3C Schema?  

Nope. 

>Does XQuery care?  

Yup. 

> Can I  use the datatyping and validating capability within my 
> database of choice if it supports XQuery.

This is a question for your database vendor of choice. 

> If I currently have a DTD and thousands possibly millions of 
> XML documents that conform to this DTD, why should I care 
> about converting my DTD to W3C Schema just to use XQuery?

You shouldn't have to and this is probably why the XQuery and XPath data
model document plans to define a mapping from DTDs to the XQuery Data
Model[0]. 

[0]http://www.w3.org/TR/query-datamodel/#IDASOVR

-- 
PITHY WORDS OF WISDOM 
In the field of observation, chance favors only the prepared minds. 

This posting is provided "AS IS" with no warranties, and confers no
rights. 



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.