<xsl:param name="LibelleCollectivite"/>
<xsl:template match="/*[position()=1]">
- <xsl:choose>
- <xsl:when test="local-name(.) = 'manifeste'">
- <manifeste xmlns="http://www.xemelios.org/namespaces#manifeste" xmlns:n="http://www.xemelios.org/namespaces#manifeste" xmlns:added="http://projets.admisource.gouv.fr/xemelios/namespaces#added">
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="string-length(.) eq 0"/>
- <xsl:otherwise><xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:for-each select="./*">
- <xsl:call-template name="writeElement">
- <xsl:with-param name="el" select="."/>
- </xsl:call-template>
- </xsl:for-each>
- </manifeste>
- </xsl:when>
- </xsl:choose>
+ <manifeste xmlns="http://www.xemelios.org/namespaces#manifeste" xmlns:n="http://www.xemelios.org/namespaces#manifeste" xmlns:added="http://projets.admisource.gouv.fr/xemelios/namespaces#added">
+ <xsl:for-each select="@*">
+ <xsl:choose>
+ <xsl:when test="string-length(.) eq 0"/>
+ <xsl:otherwise><xsl:copy-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ <xsl:for-each select="./*">
+ <xsl:call-template name="writeElement">
+ <xsl:with-param name="el" select="."/>
+ </xsl:call-template>
+ </xsl:for-each>
+ </manifeste>
</xsl:template>
<xsl:template name="writeElement">
<xsl:when test="@type='PJ'">Pièces Justificatives</xsl:when>
<xsl:when test="@type='ERTN'">Titres RNF</xsl:when>
<xsl:when test="@type eq 'EDMN' or @type eq 'edmn'">Etats Détaillé des Mandats Nationaux</xsl:when>
+ <xsl:when test="@type eq 'cfg-paye'">Paye</xsl:when>
<xsl:otherwise><xsl:value-of select="@type"></xsl:value-of></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
- <xsl:when test="contains('|volume|',concat('|',name($el),'|'))">
- <xsl:attribute name="generated-id" namespace="http://projets.admisource.gouv.fr/xemelios/namespaces#added">
- <xsl:value-of select="generate-id()"/>
- </xsl:attribute>
- <xsl:attribute name="archive" namespace="http://projets.admisource.gouv.fr/xemelios/namespaces#added">Oui</xsl:attribute>
- </xsl:when>
</xsl:choose>
<!-- recursion -->
<xsl:for-each select="$el/*">
<xsl:template name="date.in.string">
<xsl:param name="chaine"/>
<xsl:if test="string-length(normalize-space($chaine)) > 0">
-
<xsl:variable name="date" select="tokenize(normalize-space($chaine),'/')"/>
<xsl:variable name="day" select="substring($date[1],string-length($date[1])-1,2)"/>
-
<xsl:call-template name="iso-date">
<xsl:with-param name="datebrute"><xsl:value-of select="$day"/>/<xsl:value-of select="$date[2]"/>/<xsl:value-of select="normalize-space(replace($date[3],'-',''))"/></xsl:with-param>
<xsl:with-param name="separator">-</xsl:with-param>