Latest web development tutorials

XSL-FO und XSLT

XSL-FO und XSLT können einander helfen.


Denken Sie daran, in diesem Beispiel das?

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

Ergebnisse:

W3CSchool

Bei W3CSchool finden Sie alle Web-Gebäude-Tutorials finden Sie benötigen, von einfachen HTML und XHTML zu erweiterten XML, XSL, Multimedia und WAP.

Das obige Beispiel aus diesem Kapitel über XSL-FO Blockbereich.


Hilfe von XSLT

XSL-FO ist aus dem Dokument entfernt:

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

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

Das Ergebnis ist das gleiche:

W3CSchool

Bei W3CSchool finden Sie alle Web-Gebäude-Tutorials finden Sie benötigen, von einfachen HTML und XHTML zu erweiterten XML, XSL, Multimedia und WAP.