Latest web development tutorials

XSL-FO et XSLT

XSL-FO et XSLT peuvent aider les uns les autres.


Rappelez-vous cet exemple?

<fo:block font-size="14pt" font-family="verdana" color="red"
space-before="5mm" space-after="5mm">
W3CSchool
</fo:block>

<fo:block text-indent="5mm" font-family="verdana" font-size="12pt">
At W3CSchool you will find all the Web-building tutorials you
need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.
</fo:block>

Résultats:

W3CSchool

A W3CSchool vous trouverez tous les tutoriels de création de Web dont vous avez besoin, de base HTML et XHTML en XML avancée, XSL, Multimédia et WAP.

L'exemple ci-dessus de ce chapitre sur la zone de bloc XSL-FO.


Aide du XSLT

XSL-FO est retiré du document:

<header>W3CSchool</header>

<paragraph>At W3CSchool you will find all the Web-building tutorials you
need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.
</paragraph>

Ajouter transformation XSLT:

<xsl:template match="header">
<fo:block font-size="14pt" font-family="verdana" color="red"
space-before="5mm" space-after="5mm">
<xsl:apply-templates/>
</fo:block>
</xsl:template>

<xsl:template match="paragraph">
<fo:block text-indent="5mm" font-family="verdana" font-size="12pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>

Le résultat est le même:

W3CSchool

A W3CSchool vous trouverez tous les tutoriels de création de Web dont vous avez besoin, de base HTML et XHTML en XML avancée, XSL, Multimédia et WAP.