Add XSL filter on record with chart attribute for account SYSCOHADA

This commit is contained in:
Cédric Krier committed 2024-10-30 19:02:00 +01:00
1 parent e9f5155062
commit a79563f514
1 file changed
+10 -6
+10 -6
View File
@@ -10,12 +10,16 @@
</xsl:copy>
</xsl:template>
<xsl:template match="record[@id]">
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="attribute::id"/>_<xsl:value-of select="$chart"/>_<xsl:value-of select="$lang"/>
</xsl:attribute>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
<xsl:choose>
<xsl:when test="@chart=$chart or not(@chart)">
<xsl:copy>
<xsl:attribute name="id">
<xsl:value-of select="attribute::id"/>_<xsl:value-of select="$chart"/>_<xsl:value-of select="$lang"/>
</xsl:attribute>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="@*">
<xsl:choose>