Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XSD Pattern Validation

0 views
Skip to first unread message

Chin Jin Phua

unread,
Jan 10, 2005, 12:18:32 PM1/10/05
to
Hi,

Anyone know how to specify a <XS:Pattern> so as to include a set of
allowable characters? For example, I would like to allow all characters
except QUOTE, PERCENT and AMPERSAND? Is that even possible to specify it in
the XSD Schema?

Thanks
CJ

Martin Honnen

unread,
Jan 10, 2005, 12:50:36 PM1/10/05
to

Chin Jin Phua wrote:

The regular expression pattern language is defined here:
<http://www.w3.org/TR/xmlschema-2/#regexs>
it allows 'negative character groups' with [^list-of characters-here] e.g.
[^'%&]
of course inside of an XML document you need to escape the ampersand e.g.
[^'%&amp;]

--

Martin Honnen
http://JavaScript.FAQTs.com/

0 new messages