1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<xsl:when test="title">
<fo:block font-family="Arial" font-size="10pt" font-weight="bold" text-align-last="justify">
<xsl:apply-templates select="title" mode="cut-string"/>
<fo:leader leader-pattern="dots" leader-pattern-width="4pt"/>
<fo:basic-link internal-destination="{generate-id(.)}" color="blue">
<fo:page-number-citation ref-id="{generate-id()}" />
</fo:basic-link>
</fo:block>
....
</xsl:when>
<xsl:template match="*" mode="cut-string">
<xsl:choose>
<xsl:when test="string-length(.) > 24">
<xsl:value-of select="substring(.,1,24)"/>
<xsl:text>le code hexa pour le retour ligne :s</xsl:text>
<xsl:apply-templates select="substring(.,25)" mode="cut-string"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> |
Partager