问题描述
我正在更新一个旧的XML文档,该文档已转换为PDF。我正在尝试更新此XML工作表以停止使用表。我试图实现一致的制表符,并试图使Value停留在某个列中。我不清楚实现缩进,制表符或值列的最佳方法。
下面是一些代码,有人可以以最佳方式帮助我为标题创建缩进以及如何为Choose语句创建列吗?
<xsl:template match="bml:Parameter[bml:Value/bml:DataType='boolean']">
<xsl:param name="caption" select="bml:Description" />
Create an indent for this parameter.
<fo:block>
<fo:inline xsl:use-attribute-sets="paramCaption"><xsl:value-of select="$caption" /></fo:inline>
<fo:inline xsl:use-attribute-sets="paramValue">
Create a column for the value below
<xsl:choose>
<xsl:when test="/bml:Value/bml:ValueString='0'">No</xsl:when>
<xsl:otherwise>Yes</xsl:otherwise>
</xsl:choose>
</fo:inline>
</fo:block>
</xsl:template>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)