0
嗨我想爲以下示例編寫xslt 2.0解決方案。XSLT2.0:如果父項相同,則將一個標記中的所有節點都取出的解決方案
我想要把所有的子元素的一個字符內,直到該節點是其它字符本身
輸入XML
<para>
<character>
<formatting>format</formatting>
</character>
<character>
<formatting>format1</formatting
<formatting>format2</formatting
</character>
this is a text node
<character>
<formatting>format3</formatting>
</character>
<character>
<formatting>format7</formatting>
<formatting>format8</formatting>
</character>
</para>
預計輸出
<para>
<character>
<formatting>format</formatting>
<formatting>format1</formatting>
<formatting>format2</formatting>
</character>
this is a text node
<character>
<formatting>format3</formatting>
<formatting>format7</formatting
<formatting>format8</formatting
</character>
</para>
非常感謝..解決方案正在工作 – Khushi 2015-02-24 13:04:37