【问题标题】:XSL:FO border-style dottedXSL:FO 边框样式虚线
【发布时间】:2016-01-15 16:47:00
【问题描述】:

我正在尝试在表格中添加一条虚线。一世 下面是 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

【问题讨论】:

  • 您使用哪种处理器(XEP、XSLFormatter、FOP、...)来创建最终输出?
  • 我正在为 .Net 使用 FONET.dll
  • FO.NET 基于非常旧的 Apache FOP 版本,并且已经有好几年没有维护了。 fonet.codeplex.com

标签: xslt xslt-1.0 xslt-2.0 xsl-fo


【解决方案1】:

FO.NET 最初是作为 Apache FOP 0.20.4 到 .NET 环境的一个端口。

该版本的 FOP 不支持整个 FO 标准,不同的边框样式属于不受支持的功能。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-02
    • 2023-01-12
    • 1970-01-01
    • 1970-01-01
    • 2012-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多