[relaxng-user] How to match any string _except_ s1, s2, s3 ?

David Tolpin dvd at davidashen.net
Fri Jan 9 20:44:34 ICT 2004


> 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/


More information about the relaxng-user mailing list