forbidding specific strings as content

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.

i.e.
	<ValidCIdentifier>else</ValidCIdentifier>
--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