detecting a pattern for any?

David Tolpin <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
Hi,

I am using the derivative-based validation for Relax NG (as described by James Clark).

I would like to detect that the rest of a grammar matches any element, that is

any = (element * {any}|attribute * {text}|text)*

but got stuck trying to write the correct algorithm. What is the right way to do it?

David
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.