【发布时间】:2014-10-29 21:10:01
【问题描述】:
在一个 XML 文件中,我有一个包含 A lot of text 的元素 <WPG>,其中包括一个带有更多文本的子元素。
<WPG><![CDATA[A lot of text]]>
<WPL>
<ADD><profile ref="994042" />
<Rem><![CDATA[Some more text]]></Rem>
</ADD>
</WPL>
</WPG>
当我使用时
<xsl:value-of select="WPG"/>
我得到A lot of text,包括Some more text。
如何在不更改 XML 文件本身的情况下仅获取 A lot of text 而没有 Some more text?
【问题讨论】: