metadata.xsl 893 Bytes
Newer Older
cliclac's avatar
cliclac committed
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xpath-default-namespace="http://www.utc.fr/ics/hdoc/xhtml"
    exclude-result-prefixes="xs"
6
    xmlns="http://www.idpf.org/2007/opf"
cliclac's avatar
cliclac committed
7 8
    version="2.0">
    <xsl:template name="metadata">
9
        <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
cliclac's avatar
cliclac committed
10
            <dc:title><xsl:value-of select="head/title"/></dc:title>
cliclac's avatar
cliclac committed
11 12 13
            <xsl:for-each select="head/meta[@name='keywords']">
                <dc:subject><xsl:value-of select="."/></dc:subject>
            </xsl:for-each>
cliclac's avatar
cliclac committed
14 15
            <dc:creator><xsl:value-of select="head/meta[@name='author']/@content"/></dc:creator>
            <dc:language>fr</dc:language>
16
            <dc:identifier id="BookID">V2.0</dc:identifier>
cliclac's avatar
cliclac committed
17 18
        </metadata>
    </xsl:template>
19 20

</xsl:stylesheet>