- From: Biron,Paul V <Paul.V.Biron@kp.org>
- Date: Wed, 2 Jan 2002 11:31:16 -0800
- To: xmlschema-dev@w3.org
- Cc: "'Michael Kohler'" <u_mkohler@UMassD.Edu>
> -----Original Message----- > From: Michael Kohler [SMTP:u_mkohler@UMassD.Edu] > Sent: Saturday, December 29, 2001 12:03 PM > To: xmlschema-dev@w3.org > Subject: 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. > At present, pattern is the only way to acheive this...very awkward for long lists, I know. Noone has yet asked for this capability (kind of an anti-enumeration), but I'll be sure we put it on the list of possible enhancements for schema 2.0. pvb
Received on Wednesday, 2 January 2002 14:42:43 UTC