Latest web development tutorials

XSL-FO 및 XSLT

XSL-FO 및 XSLT는 서로 도움이 될 수 있습니다.


이 예제를 기억 하는가?

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

결과 :

W3CSchool

W3CSchool에서 당신은 고급 XML, XSL, 멀티미디어 및 WAP 기본적인 HTML 및 XHTML에서 당신이 필요로하는 모든 웹 건물 자습서를 찾을 수 있습니다.

XSL-FO 블록 영역에 해당 장에서 위의 예.


XSLT에서 도움말

XSL-FO는 문서에서 제거됩니다 :

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

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>

그 결과는 동일하다 :

W3CSchool

W3CSchool에서 당신은 고급 XML, XSL, 멀티미디어 및 WAP 기본적인 HTML 및 XHTML에서 당신이 필요로하는 모든 웹 건물 자습서를 찾을 수 있습니다.