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

Re: W3C Schema: Resistance is Futile, says Don Box


Re:  W3C Schema: Resistance is Futile
6/11/2002 10:44:22 AM, "Simon St.Laurent" <simonstl@s...> wrote:

>At 07:
>>Data entry is a user interface issue. There are plenty of applications
>>out there that allow you to type in "June 11, 2002", then store it as,
>>e.g., 2002-06-11. I don't think anyone is saying end users should be
>>subject to such rigid constraints, or if they are they should be slapped
>>silly.
>
>That's a nice way to look at it if you come to XML from the expectation of 
>a GUI editor or forms-based system between the user and the markup.
>
>It's downright nonsensical if you come to XML from a more hands-on approach 

Hmmmmm ... ya pays yer money and ya takes yer choice:  You can: 

- Have some input-time code (or post-input cleanup code) that normalizes values so that they can be 
effectively processed as strings, such as converting natural language, locale-specific dates into ISO (or 
some other) format that allows them to be sorted and compared as strings ...

- Use a schema, schema-processor, and schema-aware sorting/comparison tools such as XPath 2 or XQuery to 
process the XML as typed values rather than strings ...

- Live with the fact that 1.00 != 1, and 20020611 != June 11, 2002, ad nauseum. 

For my money, normalizing the values can solve many of the problems that strongly typed schema languages are 
supposed to solve, but often more simply/cheaply/portably/etc. 

<RagOnSimon> You don't like schemas, you don't like GUIs, you don't like bloated applications ... how DO you 
handle these problems? </RagOnSimon>  :~)





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.