中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

XSL-FO 與 XSLT


XSL-FO 與 XSLT 可彼此互助。


還記得這個(gè)實(shí)例嗎?

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

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

結(jié)果:

JSON

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

上面的實(shí)例來(lái)自于有關(guān) XSL-FO 塊區(qū)域的那一章節(jié)。


來(lái)自 XSLT 的幫助

從文檔移除 XSL-FO 信息:

<header>JSON</header>

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

添加 XSLT 轉(zhuǎn)換:

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

產(chǎn)生的結(jié)果是相同的:

JSON

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

其他擴(kuò)展