W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Restricting string content

From: Michael Kohler <u_mkohler@UMassD.Edu>
Date: Sun, 30 Dec 2001 09:43:50 -0600
To: xmlschema-dev@w3.org
Message-id: <1009727030.20232.0.camel@clarke.cis.umassd.edu>
Hi,

I am developing a schema that has an element whose content needs to be
restricted to valid c identifiers.  Basically the problem I have run
into is there doesn't seem to be a mechanism in schemas to restrict the
content of an element by saying that a string cannot be a certain word.
i.e. <ValidCIdent>char</ValidCIdent>
-should not be allowed as it is a reserved word, while 'chara' would be
allowed.

It doesn't seem that patterns would achieve this very well, but I may be
wrong.

What is the best way to do this?  

Thank you in advance

Mike
Received on Sunday, 30 December 2001 09:42:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:25 GMT