XSL:FO 边框式点缀
XSL:FO border-style dotted
我正在尝试在 table 中添加一条虚线。我
下面是 XSLT。当我使用 border-style = "dotted"
时,该线显示为实线而不是虚线。
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:m="http://www.ibm.com/maximo">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="hello" page-height="11in" page-width="8.5in" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="hello">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:tab le width="100mm">
<fo:table-column/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block border-before-style="dashed" border-before-width="1mm" border-before-width.length="1pt">sdsdasd</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
XSL-FO 不支持点线样式。我正在为 .Net
使用 FONET.dll
FO.NET 作为 Apache FOP 0.20.4 到 .NET 环境的端口启动。
该版本的 FOP 不支持整个 FO 标准,不支持的功能包括不同的边框样式。
我正在尝试在 table 中添加一条虚线。我
下面是 XSLT。当我使用 border-style = "dotted"
时,该线显示为实线而不是虚线。
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:m="http://www.ibm.com/maximo">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="hello" page-height="11in" page-width="8.5in" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="hello">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:tab le width="100mm">
<fo:table-column/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block border-before-style="dashed" border-before-width="1mm" border-before-width.length="1pt">sdsdasd</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
XSL-FO 不支持点线样式。我正在为 .Net
使用 FONET.dllFO.NET 作为 Apache FOP 0.20.4 到 .NET 环境的端口启动。
该版本的 FOP 不支持整个 FO 标准,不支持的功能包括不同的边框样式。