I am a little surprised that xdmp:uri-content-type and xdmp:uri-format are not supported as transformation functions in MarkLogic TDE (template-dri
xdmp:uri-content-type
xdmp:uri-format