Skip to content
Snippets Groups Projects
Commit b22a1929 authored by David Maus's avatar David Maus
Browse files

Referenz auf images normalisiert

URI-Referenz relativ zur METS-Datei in meta/
parent 7e9638a0
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,10 @@
<xsl:attribute name="FILEID" select="fun:normalize-fileId(key('files', .))"/>
</xsl:template>
<xsl:template match="@xlink:href[ancestor::file/@MIMETYPE = 'image/jpeg']">
<xsl:attribute name="xlink:href" select="concat('../', tokenize(., '/')[last()])"/>
</xsl:template>
<xsl:function name="fun:normalize-fileId" as="xs:string">
<xsl:param name="file" as="element(file)"/>
<xsl:value-of select="string-join( ('image', if ($file/../@USE) then lower-case($file/../@USE) else (), tokenize($file/FLocat/@xlink:href, '/')[last()]), '.')"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment