Merge branch 'feature/feature/xsl-notes-correction' into develop

develop
jgenero 2 years ago
commit da46e7f39a

@ -12,14 +12,14 @@
<div>
<!-- notes critiques -->
<div class="note-global">
<xsl:apply-templates select="//note[@type='n1']/p"/>
<xsl:apply-templates select="//note[@type='bp']/p"/>
</div>
</div>
<!-- notes paléographiques -->
<div class="footnote">
<ol>
<xsl:apply-templates select="//text/body/div//note[@type='na']/p"/>
<xsl:apply-templates select="//text/body/div//note[@type='paleo']/p"/>
</ol>
</div>
</xsl:template>
@ -363,36 +363,36 @@
</xsl:choose>
</xsl:template>
<!-- APPELS DE NOTE DANS LE TEXTE -->
<xsl:template match="//note[@type='n1']">
<xsl:template match="//note[@type='bp']">
<!-- notes critiques -->
<xsl:element name="sup">
<xsl:element name="a">
<!-- @href pour lier l'appel à l'id de la note en fonction de son numéro -->
<xsl:attribute name="href">
<xsl:text>#</xsl:text>
<xsl:number count="//note[@type='n1']" level="any" format="1"/>
<xsl:number count="//note[@type='bp']" level="any" format="1"/>
</xsl:attribute>
<!-- numéro de la note -->
<xsl:number count="//note[@type='n1']" level="any" format="1"/>
<xsl:number count="//note[@type='bp']" level="any" format="1"/>
</xsl:element>
</xsl:element>
</xsl:template>
<xsl:template match="note[@type='na']">
<xsl:template match="note[@type='paleo']">
<!-- notes paléographiques -->
<xsl:element name="sup">
<xsl:attribute name="id">
<xsl:text>fnref:</xsl:text>
<xsl:number count="//text/body/div//note[@type='na']" level="any" format="a"/>
<xsl:number count="//text/body/div//note[@type='paleo']" level="any" format="a"/>
</xsl:attribute>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>#fn:</xsl:text>
<xsl:number count="//text/body/div//note[@type='na']" level="any" format="a"/>
<xsl:number count="//text/body/div//note[@type='paleo']" level="any" format="a"/>
</xsl:attribute>
<xsl:attribute name="rel">
<xsl:text>footnote</xsl:text>
</xsl:attribute>
<xsl:number count="//text/body/div//note[@type='na']" level="any" format="a"/>
<xsl:number count="//text/body/div//note[@type='paleo']" level="any" format="a"/>
</xsl:element>
</xsl:element>
</xsl:template>
@ -448,32 +448,32 @@
</xsl:element>
</xsl:template>
<!-- NOTES CRITIQUES -->
<xsl:template match="//note[@type='n1']/p">
<xsl:template match="//note[@type='bp']/p">
<xsl:element name="p">
<!-- @id, cible du @href de l'appel de note dans le texte -->
<xsl:attribute name="id">
<xsl:number count="//note[@type='n1']" level="any" format="1"/>
<xsl:number count="//note[@type='bp']" level="any" format="1"/>
</xsl:attribute>
<!-- numéro de la note -->
<xsl:number count="//note[@type='n1']" level="any" format="1"/>
<xsl:number count="//note[@type='bp']" level="any" format="1"/>
<xsl:text>. </xsl:text>
<!-- texte de la note -->
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<!-- NOTES PALÉOGRAPHIQUES -->
<xsl:template match="note[@type='na']/p">
<xsl:template match="note[@type='paleo']/p">
<xsl:element name="li">
<xsl:attribute name="id">
<xsl:text>fn:</xsl:text>
<xsl:number count="//text/body/div//note[@type='na']" level="any" format="a"/>
<xsl:number count="//text/body/div//note[@type='paleo']" level="any" format="a"/>
</xsl:attribute>
<xsl:attribute name="class">
<xsl:text>footnote</xsl:text>
</xsl:attribute>
<xsl:element name="p">
<!-- numéro de la note -->
<xsl:number count="//text/body/div//note[@type='na']" level="any" format="a"/>
<xsl:number count="//text/body/div//note[@type='paleo']" level="any" format="a"/>
<xsl:text>. </xsl:text>
<!-- texte de la note -->
<xsl:apply-templates/>

Loading…
Cancel
Save