程序员的知识教程库

网站首页 > 教程分享 正文

XSL-FO 与 XSLT(xsl表格怎么画斜线)

henian88 2024-09-08 04:42:34 教程分享 14 ℃ 0 评论

XSL-FO 与 XSLT 可彼此互助。


还记得这个实例吗?

<fo:block font-size="14pt" font-family="verdana" color="red"

space-before="5mm" space-after="5mm">

RUNOOB

</fo:block>

<fo:block text-indent="5mm" font-family="verdana" font-size="12pt">

At RUNOOB you will find all the Web-building tutorials you

need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.

</fo:block>

结果:

RUN

At RUN 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>RUNOOB</header>

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

产生的结果是相同的:

RUN

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

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表