Version pinning and fallback order when a document is generated against a template with multiple published revisions.