以文本方式查看主题

-  W3CHINA.ORG讨论区 - 语义网·描述逻辑·本体·RDF·OWL  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  两个xml文件中的两个列表如何合并?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=60498)


--  作者:haodi
--  发布时间:3/27/2008 8:15:00 AM

--  两个xml文件中的两个列表如何合并?
例子:

文件1:

<list>
 
 <cd>
  <title>song1</title>
  <author>player1</author>
 </cd>
 
 <cd>
  <title>song2</title>
  <author>player2</author>
 </cd>

</list>

文件2:

<list>
 
 <cd>
  <title>song3</title>
  <author>player3</author>
 </cd>
 
 <cd>
  <title>song4</title>
  <author>player4</author>
 </cd>

</list>

如何写xslt得到结果:
<list>
 
 <cd>
  <title>song1</title>
  <author>player1</author>
 </cd>
 
 <cd>
  <title>song2</title>
  <author>player2</author>
 </cd>

        <cd>
  <title>song3</title>
  <author>player3</author>
 </cd>
 
 <cd>
  <title>song4</title>
  <author>player4</author>
 </cd>

</list>


谢谢了先!


--  作者:Qr
--  发布时间:3/27/2008 9:03:00 AM

--  
http://bbs.xml.org.cn/dispbbs.asp?boardID=8&ID=60435
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms