Re: How to match any string _except_ s1, s2, s3 ?
David Tolpin <[email protected]>
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
> Question: How to match any string _except_ s1, s2, s3 ?
>
Yes, the pattern is except pattern. In compact syntax:
start = element * { xsd:token - xsd:token {pattern="[Rr]oot"} }
or
start = element * { token - ("Root"|"root") }
will match any single element with any content besides Root or root, namespace
normalized.
In XML syntax, it is <except> .
David Tolpin
http://davidashen.net/