Message
mimetype for file with extension "$extension" should be "string-join($expectedMimeType, '" or "')" found "string-join((@mimetype, @mime-subtype), '/')"
mimetype for file with extension "$extension" should be "string-join($expectedMimeType, '" or "')" found "string-join((@mimetype, @mime-subtype), '/')"
This rule ASSERTS the following, raising an alert if FALSE:
let $extension := lower-case(replace(@xlink:href, '^.*?(\.[^\.]+)$', '$1')) returnlet $expectedMimeType := $mediaExtensions//media[@ext = $extension]/@mime returnempty(@mimetype | @mime-subtype) or string-join((@mimetype, @mime-subtype), '/') =
$expectedMimeType or not($expectedMimeType)