Commit bf87ea30 authored by Aghiles's avatar Aghiles

Gestion des images integrées Partie 2 : ajout des descriptions des images

parent cc0cf548
......@@ -198,7 +198,9 @@
<xsl:template match="li[@class='gallerybox']" mode="#all">
<xsl:element name="{local-name()}" namespace="http://www.utc.fr/ics/hdoc/xhtml">
<img src="./ressources/{translate(tokenize(.//img/@src, '/')[last()],'?%','_')}" alt="{.//img/@alt}"/>
<p>
<xsl:value-of select=".//div[@class='galerytext']/p"/>
</p>
</xsl:element>
</xsl:template>
......@@ -494,6 +496,8 @@
match=" h2[following-sibling::div[@class='references-small decimal'] and preceding-sibling::h2][last()]"/>
<xsl:template match="h2[following-sibling::h3[span[@id='Notes']]][last()]"/>
<xsl:template match="div[@id='mw-navigation']/h2"/>
<xsl:template match="h2[span[@id='Voir_aussi']]"/>
<xsl:template match="h2[span[@id='Notes_et_r.C3.A9f.C3.A9rences']]"/>
<!-- Ignoring divs by default: they are not relevant to us -->
<xsl:template match="div[not(descendant::table)]" mode="#all"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment