|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XQuery and DTD/Schema?
> -----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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








