<if test="document('lookup.xml')/people/person[@id=current::@ref]"> <message>this person does not exist in the database</message> </if>
The <emph> element should be used to mark linguistic, not typographic emphasis
Use the <biblStruct> element rather than <bibl> wherever possible