Re: [xml-dev] DTDs, W3C Schemas, RELAX NG, Schematron?

From
John Cowan <>
To
Date
2002-06-24T11:40:29Z
ID
<>
Thread
Re: [xml-dev] DTDs, W3C Schemas, RELAX NG, Schematron?
Don Box scripsit:

> > Wow! I was knocked out by this one. What good are datatypes if one can
> > work in terms of the value space of the type rather than the lexical
> > form?
> 
> In case it wasn't obvious, that sentence should have read "What good are
> datatypes if one CANNOT work in terms of the value space..."

Oh, one definitely can.  To express "nonzero integer" properly,
the Right Thing is:

	xsd:integer - (xsd:integer "0")

Just because I can't always think of the R.T. on the fly, doesn't
mean it doesn't exist!


-- 
John Cowan <>     http://www.reutershealth.com
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, _LOTR:FOTR_