Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
bf87ea30
Commit
bf87ea30
authored
Dec 22, 2016
by
Aghiles
Browse files
Gestion des images integrées Partie 2 : ajout des descriptions des images
parent
cc0cf548
Changes
1
Hide whitespace changes
Inline
Side-by-side
wikipedia_to_hdoc/xslt/wiki_to_hdoc.xsl
View file @
bf87ea30
...
...
@@ -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"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment