下面的 XSLT 样式表语句是错误的
   <xsl:variable name="formatInfo" select="'dateTime'" />
<xsl:call-template name="$formatInfo" />

这是因为 XSLT call-template 模板名不可以是变量,它是一个 QName, 不能是表达式或者是属性值模板

但是据说 Saxon 支持在运行时指定模板名,比如
<xsl:call-template name="{$formatInfo}" saxon:allow-avt="yes"/>

 posted on 2004-10-25 11:28  一切由.NET开始  阅读(969)  评论(0编辑  收藏  举报