2
我有一個XSL一個小問題:複製的,因爲我只想節點的複製內容,而不是節點本身:XSL:複製的僅僅是內容,而節點
在XML :
<parent>
<node>Hello, I'm a <b>node</b>!!!</node>
</parent>
在XSL:
<xsl:template match="parent">
<tr>
<td><xsl:copy-of select="node"/></td>
</tr>
</xsl:template>
其結果是:
<tr>
<td><node>Hello, I'm a <b>node</b>!!!</node></td>
</tr>
預期的結果:
<tr>
<td>Hello, I'm a <b>node</b>!!!</td>
</tr>
的問題是,如果我使用xsl:value-of
,我鬆<b></b>
!