[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: atoms, molecules
> It seems as if regular expressions could be used not just for validation of > typed content, but for fragmentation of typed molecules into smaller > atoms. Instead of binding users to a particular (ISO 8601) date format, > this approach would let users provide their own rules for fragmenting date > strings into the parts we need for processing - year, month, day, etc. One of the problem of this approach is that you can't specify order relation and equality relation. And date/time is utterly useless without them (it is ironic that the current date/time types are also broken with respect to order/equality relation) How would you define 24hours=1day, or 2minutes < 150 seconds in your atom/molecule model? -- Kohsuke KAWAGUCHI +1 650 786 0721 Sun Microsystems kohsuke.kawaguchi@e...
|
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
|