1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
| <xsl:template match="/" name="construction">
<xsl:param name="noeud"/>
<xsl:param name="indice"/>
<xsl:param name="language"/>
<!-- On commence par afficher toutes les pages avec l''indice donné -->
<xsl:for-each select="noeud/system-page">
<xsl:variable name="title" select="noeud/linguisticVersion[./language = $language]/title"/>
<xsl:variable name="path" select="noeud/path"/>
<xsl:variable name="name" select="noeud/linguisticVersion[./language = $language]/name"/>
<xsl:variable name="accr" select=".noeud/Header/ReferenceNumber"/>
<xsl:if test="not (contains($path,'index'))">
<li class="linkGri">
<a class="linkGri">
<xsl:attribute name="href">
<xsl:value-of select="concat($path,'#',$indice)"/>
</xsl:attribute>
<xsl:variable name="ancre">
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="noeud/Header/ReferenceNumber"/>
<xsl:with-param name="replace" select="'.'"/>
<xsl:with-param name="by" select="'_'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="ancre_">
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="$ancre"/>
<xsl:with-param name="replace" select="' '"/>
<xsl:with-param name="by" select="'_'"/>
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="id">
<xsl:value-of select="concat('section_',$ancre_)"/>
</xsl:attribute>
<!--<xsl:attribute name="target"><xsl:text>_blank</xsl:text></xsl:attribute> -->
<xsl:choose>
<xsl:when test="not(contains($accr,'Standard Disclosure'))">
<xsl:value-of select="concat($accr,'-',$title)"/>
<div class="right">
<xsl:value-of select="noeud/Header/RelatedStatus/name"/>
*-*
<xsl:value-of select="noeud/Header/gri/name"/>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</a>
</li>
</xsl:if>
</xsl:for-each>
<!-- On s''occupe des sous-repertoires -->
<xsl:for-each select="noeud/system-folder">
<xsl:variable name="plus1" select="$indice + position()"></xsl:variable>
<li class="accordion_li level_1">
<hr class="space"/>
<!-- Compter le nombre de -->
<h4 class="accordion_h4"><xsl:value-of select="./name"/></h4>
<div class="inner">
<ul>
<xsl:template match="/" name="construction">
<xsl:with-param name="noeud" select="."/>
<xsl:with-param name="indice" select="$plus1"/>
<xsl:with-param name="language" select="$language"/>
</xsl:template>
</ul>
</div>
</xsl:for-each>
</xsl:template> |
Partager