Martin -- Yes, excellent; thank you. Everyone: I moved the declaration of macro.anyXML as Lou pointed out was needed, and added checkid=false to the proper test validation call to jing as you describe and presto, it builds fine locally. I checked the result directly into master. Mr. Jenkins[1] is still complaining about not being able to use XeLaTeX to build PDFs, though. Note ---- [1] That's Mr. Victoria Jenkins; Mr. Oxford Jenkins refuses to talk to me.
The Jing task for ant is documented here:
http://www.thaiopensource.com/relaxng/jing-ant.html
I believe (although I haven't tested it) that you can set the required param like this:
<target name="validaterng"> <echo level="info">Validate ${testfile} against RELAXNG ${outputname}.rng</echo> <runjing rngfile="${outputname}.rng" file="${testfile}" checkid="false"/> </target>
i.e. by adding @checkid="false" to the runjing task call on line 134.