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

RE: Dates in XML

  • From: Andrew Layman <andrewl@m...>
  • To: xml-dev@i...
  • Date: Fri, 10 Jul 1998 10:21:51 -0700

xml dt dt
This all sounds sensible to me.

-----Original Message-----
From: rbourret@d...
[mailto:rbourret@d...]
Sent: Friday, July 10, 1998 8:38 AM
To: xml-dev@i...
Subject: Re: Dates in XML


Peter Murray-Rust wrote:
> ...
> I was looking at the XML-Data proposal just today and thinking 'why don't
> we use the primitives it defines, just as they are, without the rest of
> XML-data?'. This encourages me to offer the question to a wider audience.
I
> am seriously missing a specification for  primitives - what do other
people
> think about borrowing those from XML-data?

Absolutely.  For XSchema 1.1, I vote for a dt:dt attribute on the PCData 
element.

The XML-Data spec shows the following ways to specify data types:

Attribute:  <size dt:dt="int">8</size>
Subelement: <size><dt:int>8</dt:int></size>
Schema:     <elementType id="size"><datatype dt="int"/></elementType>

I believe we should only adopt the first of these for now.

While there are no technical problems with the second, it seems counter to
the 
spirit of XML: We are now most closely labeling the value 8 as an int,
rather 
than as a size, which is what it really is.

The third is just plain confusing because the datatype subelement is not
part of 
the content model.  For example, what does the following XML-Data
declaration 
mean?  The sequence is an integer?  I can imagine datatype elements as a 
substitute for content models, but not in addition to them.  Anything I'm 
missing here?

<elementType id="size">
   <datatype dt="int">
   <group groupOrder="SEQ">
      <element type="#shoe"/>
      <element type="#shirt"/>
   </group>
</elementType>

-- Ron Bourret

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following
message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.