~ use <doc name (- '.xm')> rather than [] for Resource names