【发布时间】:2017-07-12 13:26:49
【问题描述】:
我有一个 XML 查找文档,并希望尝试使其执行速度更快一些。我反复查找文档以返回不同的属性,是否可以在一次查找中返回所有属性并仅解析返回的值?示例代码:
<xsl:attribute name="Oracle_Routing">
<xsl:value-of select="key('table-lookup', $curr_key, $LookupDoc)/@OracleSchema"/>
</xsl:attribute>
<xsl:attribute name="TableName">
<xsl:value-of
select="key('table-lookup', $curr_key, $LookupDoc)/@DestinationTable"/>
</xsl:attribute>
<xsl:variable name="Column"
select="key('table-lookup', $curr_key, $LookupDoc)/@ColumnName"/>
【问题讨论】: