如何通过XLINK实现XML文档的嵌入
我想通过XLINK在我的XML文档中嵌入一个外部的文档,通过ID关联,在XML加载时执行嵌入操作,代码如下,但在IE6中确不显示外部文档的
内容而只显示原文档的内容。
order.xml
<?xml version="1.0"?>
<order xmlns:xlink="http://www.w3.org/1999/xlink">
<date>7/23/2001</date>
<customer xlink:href="customers.xml" xlink:type="simple" xlink:show="embedded" xlink:actuate="onLoad">18</customer>
</order>
customers.xml
<?xml version="1.0"?>
<customer>
<customerID>18</customerID>
<customerName>小王</customerName>
<billingAddress>
<address1>中国家具城</address1>
<city>沈阳</city>
<state>辽宁</state>
<zip>110023</zip>
</billingAddress>
</customer>
以上两个文件在相同路径下。