我有一个模板如下。
<xsl:template name="processTopicKeywords">
<!-- 07Feb
<fo:block xsl:use-attribute-sets="topic">
<fo:inline xsl:use-attribute-sets="topic.title"><xsl:apply-templates/></fo:inline>
<xsl:apply-templates select="*[contains(@class, ' topic/body ')]/*[contains(@class, ' topic/p ')]"/>
</fo:block> -->
<xsl:message> + [DEBUG] processTopicKeywords</xsl:message>
<fo:block xsl:use-attribute-sets="topic">
<fo:inline
font-family="ArialRegular"
font-size="9pt" font-weight="bold">
<xsl:apply-templates select="*[contains(@class, ' topic/title ')]/node()"/>
<xsl:text> </xsl:text>
</fo:inline>
<fo:inline>
<xsl:apply-templates select="*[contains(@class, ' topic/body ')]/*[contains(@class, ' topic/p ')]/node()"/>
</fo:inline>
<xsl:variable name="keys" select="*[contains(@class, ' topic/body ')]/*[contains(@class, ' topic/p ')]/node()" />
</fo:block>
</xsl:template>
我想调用变量&#34; keys&#34;它收集数据并发送到全局参数。我尝试了如下,但它没有运作
<xsl:variable name="keys" select="(processTopicKeywords)/*[contains(@class, ' topic/title ')]/node()/*[contains(@class, ' topic/body ')]/*[contains(@class, ' topic/p ')]/node()" />
有人可以帮助我吗?