【发布时间】:2013-03-14 05:55:17
【问题描述】:
以下是我的xml代码:
<abbr>
<title>world health organization</title>who</abbr>
was founded in 1948.
在上面的代码中,我希望 xslt 输出为:
<abbr title="world health organisation">who<abbr>
我编写了以下 XSLT 代码:
<xsl:template match ="abbr">
<abbr title="<xsl:value-of select ="title"/>">
<xsl:value-of select ="."/></abbr>
</xsl:template>
我得到了:
<abbr title="world health organization">
world health organizationwho</abbr>
我哪里做错了?
输出
<xsl:value-of select"."/>
是
world health organisationwho
(世界卫生组织+谁)
现在,我不想要第一部分。 我怎样才能做到这一点?
【问题讨论】: