1
私は、次のXSLTテンプレートがあります。XSLとテンプレートにマークアップを渡す:と-PARAM
<xsl:template name="with-newlines">
<xsl:param name="text" />
<fo:block linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap" white-space-treatment="preserve">
<xsl:value-of select="$text" />
</fo:block>
</xsl:template>
を私はXSLにテンプレートを適用する:要素にテンプレートを呼び出す:
<xsl:call-template name="with-newlines">
<xsl:with-param name="text">
<fo:inline font-size="8pt">
<xsl:value-of select="./Foo/Bar"></xsl:value-of>
</fo:inline>
</xsl:with-param>
</xsl:call-template>
しかし、結果のpdfファイルでは、fo-inlineタグは無視されます。私はテンプレート自体にタグを入れて、私は正しいフォントサイズを取得します。しかし、私はフォントサイズ(または他の属性)が異なる必要がある場所でテンプレートを使用することはできません。
スーパー!どうもありがとうございました! – Lodewijk