I am writing a Relax NG parser. I must resolve all references (ref,parentRef) before checking groupability restrictions, right? That is, I cannot do it in one pass and must carry information about the position of a pattern in the source code to the second pass? David