XSL-FO yXSLT


XSL-FO y XSLT pueden ayudarse mutuamente.


¿Recuerdas este ejemplo?

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

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

Resultado:

EJEMPLO

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

El ejemplo anterior proviene del capítulo sobre las áreas de bloque de XSL-FO.


Ayuda de XSLT

Eliminar información XSL-FO del documento:

<header>EJEMPLO</header>

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

Añadir transformación 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>

El resultado es el mismo:

EJEMPLO

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


Otras extensiones