【发布时间】:2012-12-06 08:58:00
【问题描述】:
我正在做一个 xstl 转换,我想保留来自源 xml 的 CDATA 条目。因此,我相应地定义了 cdata-section-elements。但是我有相同的 qname 属性 name="test"。那里我不想应用 cdata。如何排除此元素?
.xml
<my:request><![CDATA[<foo...>]]>
<my:request>
<my:request name="test">
</my:request>
.xsl
<xsl:output cdata-section-elements="my:request"/>
【问题讨论】: