JSRUN 用代码说话

XSL-FO 与 XSLT

编辑教程

XSL-FO 与 XSLT

本节为你介绍 XSL-FO 与 XSLT 之间的使用关系。

XSL-FO 与 XSLT 可彼此互助。

还记得这个实例吗?

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

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

结果:

jsrun

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

上面的实例来自于有关 XSL-FO 块区域的那一章节。

来自 XSLT 的帮助

从文档移除 XSL-FO 信息:

<header>jsrun</header>

<paragraph>At jsrun 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>

产生的结果是相同的:

jsrun

At jsrun you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.
JSRUN闪电教程系统是国内最先开创的教程维护系统, 所有工程师都可以参与共同维护的闪电教程,让知识的积累变得统一完整、自成体系。 大家可以一起参与进共编,让零散的知识点帮助更多的人。
X
支付宝
9.99
无法付款,请点击这里
金额: 0
备注:
转账时请填写正确的金额和备注信息,到账由人工处理,可能需要较长时间
如有疑问请联系QQ:565830900
正在生成二维码, 此过程可能需要15秒钟