Commit e8478060 authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

construction d'un url à valider

parent 383db162
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -2,7 +2,13 @@
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:ns="urn:isbn:1-931666-22-9"
    xmlns:ead="urn:isbn:1-931666-22-9" exclude-result-prefixes="ead ns xlink">
    xmlns:ead="urn:isbn:1-931666-22-9" 
    xmlns:max="https://max.unicaen.fr" exclude-result-prefixes="ead ns xlink max">

    <xsl:import href="../../../../../ui/xsl/core/i18n.xsl"/>

    <xsl:param name="project"/>
    <xsl:param name="locale"/>

    <xsl:template match="/">
        <!-- <xsl:copy-of select="."/> -->
@@ -19,6 +25,13 @@
    <xsl:template match="*:dao"/>
    <xsl:template match="nav">
        <nav>
             <div class="eadHeader">
                <xsl:variable name="url" select="(//*:details[1]//*:a[1]/@href)[1]" />
                <a href="{substring-before($url,'.xml')||'.xml/info/eadheader.html'}">
                    <xsl:variable name="i18nKey">menu.meta</xsl:variable>
                    <xsl:value-of select="max:i18n($project,$i18nKey,$locale)"/>
                </a>
            </div>
            <xsl:apply-templates/>
        </nav>
    </xsl:template>