XSL-FO Tutoriallogin
XSL-FO Tutorial
author:php.cn  update time:2022-04-21 16:29:33

XSL-FO XSLT



XSL-FO and XSLT can complement each other.


Do you still remember this instance?

<fo:block font-size="14pt" font-family="verdana" color="red"
space-before="5mm" space-after="5mm">
PHP.CN
</ 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>

Result:

Help from XSLTRemove XSL-FO information from the document:
##PHP.CN

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

<header>PHP.CN</header>

<paragraph>At php.cn you will find all the Web-building tutorials you

need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.

</paragraph>

Add XSLT transformation:


<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>


produces the same result:



PHP.CN

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