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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.