W3C home > Mailing lists > Public > www-forms@w3.org > May 2006

Re: XForms Basic and Schema Validation

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Wed, 10 May 2006 09:34:40 +0100
To: John Boyer <boyerj@ca.ibm.com>
Cc: David Landwehr <david.landwehr@solidapp.com>, "Mark Birbeck" <mark.birbeck@x-port.net>, www-forms@w3.org, www-forms-request@w3.org
Message-ID: <f5bbqu6z3a7.fsf@erasmus.inf.ed.ac.uk>

Hash: SHA1

Seems to me you'd be much better off, as I understand what you're
doing, to talk about simple type definitions, not datatypes.  I take
it from [1] that an XForm MIP uses a QName to refer to
. . . something.  That something appears to be user-definable, in a
(W3C XML Schema)schema.  Such things are simple type definitions,
referred to by name (or, if you must, although I think it's going to
cause _much_ more confusion and trouble than it's worth, by naming a
complex type definition with simple content, whose {content type} is
then the referent.  In your example [1], what is gained by referring
to my:internationalPrice instead of xs:decimal?).

Talking about simple type definitions will simplify your prose
interface to the XML Schema specs.  Note for example that the
(misleadingly named, sorry) Validation Rule: Datatype Valid [2] is a
rule relating a simple type definition (not a datatype) to a string.


[1] http://lists.w3.org/Archives/Public/www-forms/2006May/0075.html
[2] http://www.w3.org/TR/xmlschema11-2/#cvc-datatype-valid
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Wednesday, 10 May 2006 08:35:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC