XSL-FO와 XSLT
XSL-FO와 XSLT는 서로 도와줄 수 있습니다.
이 예시를 기억하십니까?
<fo:block font-size="14pt" font-family="verdana" color="red" space-before="5mm" space-after="5mm"> W3School </fo:block> <fo:block text-indent="5mm" font-family="verdana" font-size="12pt" space-before="5mm" space-after="5mm"> At CodeW3C.com you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP. </fo:block>
결과:

이 예제는 XSL-FO 블록 지역에 대한 족보에서 따왔습니다.
XSLT에서의 도움
XSL-FO 정보를 문서에서 제거:
<header> W3School </header> <paragraph> At CodeW3C.com you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP. </paragraph>
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" space-before="5mm" space-after="5mm"> <xsl:apply-templates/> </fo:block> </xsl:template>
생성된 결과는 동일합니다:
