[Home] [By Thread] [By Date] [Recent Entries]
You could try taking a look at Gunther Rademacher's REX parser
generator. I've found it hard to find information about it, other than
mentions by people who have used it for some rather interesting
projects. Basically, if I understand it correctly, given an EBNF
grammar, it generates a parser for that grammar written in XQuery. Most
of the examples seem to be parsers for textual languages (i.e. where the
tokens of the language being parsed are made up of characters) but I
don't see any reason in principle why it shouldn't also parse a language
where the tokens of the language are element nodes.
Michael Kay Saxonica On 26/04/2012 22:45, Tiago Freitas wrote: I need to match patterns on a set of XML documents (all with the same schema), and when a pattern matches, I need to retrieve the content and do some specific transformations on that content (no xml output needed).
|

Cart



