Commit 6b246c0d authored by Raphaël's avatar Raphaël

Line break enabled for hypertext links

parent c1ac4703
...@@ -27,6 +27,26 @@ ...@@ -27,6 +27,26 @@
</body> </body>
</xsl:template> </xsl:template>
<!-- Traitement des liens hypertextes pour autoriser le saut à la ligne-->
<xsl:template match="a">
<a>
<xsl:copy-of select="@*" />
<xsl:call-template name="addWordBreak">
<xsl:with-param name="input" select="."/>
</xsl:call-template>
</a>
</xsl:template>
<xsl:template name="addWordBreak">
<xsl:param name="input"/>
<xsl:value-of select="substring($input,1,1)"/><wbr />
<xsl:if test="substring($input,2)">
<xsl:call-template name="addWordBreak">
<xsl:with-param name="input" select="substring($input,2)"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Cleaning des footers vides --> <!-- Cleaning des footers vides -->
<xsl:template match="footer[not(node())]"/> <xsl:template match="footer[not(node())]"/>
......
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