[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


javascript date.parse format
6/11/2002 11:20:55 AM, "Simon St.Laurent" <simonstl@s...> wrote:

>At 11:06 AM 6/11/2002 -0400, Mike Champion wrote:
>
>
>I'm a text-editor kind of guy who writes SAX filters.  That solves a lot 
>for me. 

So, I take it your approach is to have the application use pattern-matching to 
extract the information within an element/attribute value into the form
you wish to process it?  For example  let the author type the date in any convenient format, then
use something like the Javascript Date.parse() method (sorry, I'm a DOM/Javascript weenie
by default ...I guess you would use regular  fragmentations and SAX) to 
make it useful by the application???

Hmm, I guess that makes sense a an option; rather than have the GUI 
normalize it, or some post-processor normalize it (making it vulnerable
to being broken by somebody "fixing" the XML with Notepad), just
do the "normalization" in the application. I'm personally not crazy about
it (since I tend to use XPath and/or XSLT to locate parts of a document
or a collection of docs to process, and XPath doesnt' know about the private
understanding between author and app writer on what the acceptable formats
for a date might be).

Still, I'm sure we agree on the fundamental point: there is a lot of territory
between helplessly dealing with <date>June 11, 2002</date> as 
a string that requires human intervention to process, and drinking the Schema koolaid
in order to automatically bind it to a Date object.








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.