XSL模板可选

时间:2020-06-02 07:04:19

标签: xml xslt

我有一个数据文件,各种样式表都将其称为。我在模板信头中添加了outputChannel的行。

<xsl:template name="letterhead">
    <xsl:call-template name="outputChannel"/>
    <xsl:call-template name="receiverAddress"/>
    <xsl:call-template name="fields06"/>
    <xsl:call-template name="letterReference"/>
    <xsl:call-template name="reference1"/>
    <xsl:call-template name="reference2"/>
</xsl:template>

outputChannel仅在一个样式表中使用,其他样式表中出现以下错误:

此样式表中未定义模板'outputChannel'。信息:无其他信息类别:配置

所以我想outputChannel是必填字段。是否可以将数据文件中的outputChannel设置为可选?

谢谢!

0 个答案:

没有答案