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

Re: Why XML data typing is hard

  • From: Joel Bender <joel@s...>
  • To: xml-dev@i...
  • Date: Tue, 1 Dec 1998 16:00:45 -0500

xml grep
Ketil Z Malde wrote:

>  Alternatively, you could force people to use "YYYY-MM-DD" by
>  forcing conformance to a regular expression, and have your
>  applications only have to deal with that.

It may not be politicaly correct, and depending on the context might even
come across as ethnocentric, but IMHO that's not a bad thing.

>  And, I think it's pretty obvious that there are a lot of very
>  complex data types out there.  What's the format for version
>  numbers, for instance?  Or license plates?  Are you ready to
>  come up with an xml:type that covers all cases?

A standards process doesn't need to cover all the cases, all it has to do
is come up with a consensus on how the basics should be covered, and
assuming the membership keeps its collective head above water, how it
should be extended.

>  Some may want to build all of this into a type system that
>  XML parsers need to handle...

I don't think a type 'system' is necessary, but a way of mapping patterns
and types together is useful enough for lots of applications to be
standardized.  Let's say you give me a bunch of XML files which is are
marked-up email messages, and I would like to find out which ones are at
least a week old.  It sure would be nice to know that the <received>Tue, 1
Dec 1998 02:00:09 +0000</received> contents you provided me have some
standard form.

>  ...with mappings to the various programming languages and
>  machine architectures that may or may not support that type
>  natively.

No, not specific to a language mapping, that belongs in some API or SAX
reference not in XML.  Supporting grep content pattern matching doesn't
seem like it would be any more difficult than namespaces, kinda like...

	dataPattern ::= 'xml:grep' Eq Pattern	[ VC : Matches Pattern ]
	Pattern ::= (to be defined)

	Validity Constraint : Matches Pattern

	If the 'xml:grep' attribute has been provided then the
	element contents must match the pattern.

Besides, I don't know of any machine architecture that 'knows' about
anything 'natively' other than a bunch of one's and zero's :-).


Joel

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.