以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XQuery/XLink/XPointer/ 』  (http://bbs.xml.org.cn/list.asp?boardid=14)
----  有谁能详细介绍一下xinclude?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=14&rootid=&id=7119)


--  作者:cxiaobao
--  发布时间:4/29/2004 11:33:00 AM

--  有谁能详细介绍一下xinclude?
多谢
--  作者:easteast
--  发布时间:5/13/2005 11:32:00 AM

--  
在MSDN上,有对XInclude的很详细介绍。http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/xinclude.asp

我的问题是,在用了MS提供的XInclude的库之后,可以include进一个xml文件。
如果我想在一个xml文件中include进两个xml文件,语法上该怎么写?
比如:<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="page.xsl"?>
<xi:include href="user.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<xi:include href="boss.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>

这样的话,include的时候会出错。应该怎么写呢?谢谢


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
6,173.828ms