<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
   version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/"
   xmlns:xml="http://www.w3.org/XML/1998/namespace"

>
   <xsl:output
      method="xml"
      indent="yes"
      encoding="UTF-8"
      omit-xml-declaration="yes"
   />
<!--==========================================================================
La forme canonique d'un record OAI est décrite par
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd
Cependant, le fluxml résultant de l'application de ce xsl ne doit comporter
que le sous-arbre "metadata", p.ex. :
<?xml version="1.0" encoding="UTF-8" ?>
<metadata>
   <oai_dc:dc ... >
      <dc:title> ... </dc:title>
      <dc:creator> ... </dc:creator>
      ...
   </oai_dc:dc>
</metadata>
===========================================================================-->
   <xsl:template match="/">
      <metadata>
         <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/">
            <xsl:apply-templates select="NOTICES/T_DORIS/TITRE"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/AUTEUR1_ENS/AUTEUR1_BLOC"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/AUTEUR2_ENS/AUTEUR2_BLOC"/>
            <xsl:apply-templates select="NOTICES/DORIS_KEY"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/SUJET_LIEU"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/COUV_DEB_DATE"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/COUV_FIN_DATE"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/CREAT_AN"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/PUBL_DEB_AN"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/PUBL_FIN_AN"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/EXEC_AN/@display"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/LANGUE/@display"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/EDITEUR/@display"/>
            <xsl:apply-templates select="NOTICES/GESTION6"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/COTE"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/SUJET_COMMUN/@display"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/SUJET_PERS/@display"/>
            <xsl:apply-templates select="NOTICES/T_DORIS/TYPE/@display"/>
         </oai_dc:dc>
      </metadata>
   </xsl:template>
   <xsl:template match="NOTICES/T_DORIS/TITRE">
      <dc:title>
         <xsl:value-of select="."/>
      </dc:title>
   </xsl:template>
</xsl:stylesheet>


