W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

forbidding specific strings as content

From: Michael Kohler <u_mkohler@UMassD.Edu>
Date: Sat, 29 Dec 2001 15:02:36 -0500 (EST)
To: xmlschema-dev@w3.org
Message-id: <1009659819.3454.0.camel@clarke.cis.umassd.edu>
I am developing a schema that must make sure that the content of an
element is a valid c identifier.  In order to do this I need to be able
to provide a list of strings that are to be considered invalid content.

--should not be allowed as 'else' is a reserved word, while 'elsea'
would be allowed.

I have not seen any schema attribute or element that allows the
definition of what is not allowed.  Patterns don't seem to be the
correct way to go, but I could be wrong.

What would be the best way of achieving this?
Any help would be appreciated.

Thank you
Received on Tuesday, 1 January 2002 17:13:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC