Parse <reference>
We need two steps of parsing.
First, find all references and then parse all of them recursively.
Second parse the file itself.