Lists Home |
Date Index |
- To: "Betty Harvey" <email@example.com>
- Subject: RE: [xml-dev] XQuery and DTD/Schema?
- From: "Dare Obasanjo" <firstname.lastname@example.org>
- Date: Tue, 2 Jul 2002 16:41:22 -0700
- Cc: <email@example.com>
- Thread-index: AcIiIMFsg82LJknlRkyuJLPGY/Tj0wAAF3Hw
- Thread-topic: [xml-dev] XQuery and DTD/Schema?
> -----Original Message-----
> From: Betty Harvey [mailto:firstname.lastname@example.org]
> Sent: Tuesday, July 02, 2002 4:33 PM
> To: Dare Obasanjo
> Cc: email@example.com
> Subject: RE: [xml-dev] 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
> 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).
> Does XQuery require a W3C Schema?
>Does XQuery care?
> 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
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