Elemento <ref> definido em <references> tem o atributo de grupo "$1", que não aparece no texto anterior.
<ref>
<references>