如何通过XLINK实现XML文档的嵌入

Mr.Osc 2003-01-05 10:45:08
我想通过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>

以上两个文件在相同路径下。
...全文
57 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2003-01-07
  • 打赏
  • 举报
回复
see
Storing XML in Relational Databases
http://www.xml.com/pub/a/2001/06/20/databases.html

Introduction to Native XML Databases
http://www.xml.com/pub/a/2001/10/31/nativexmldb.html

Mapping DTDs to Databases
http://www.xml.com/pub/a/2001/05/09/dtdtodbs.html

XML and Database Mapping in .NET
http://www.xml.com/pub/a/2002/10/23/ado-net.html
Mr.Osc 2003-01-07
  • 打赏
  • 举报
回复
更新一下
saucer 2003-01-06
  • 打赏
  • 举报
回复
current IE browsers do not support xlink, suggest you use tools like XSLT to include the linked xml into your main xml
Mr.Osc 2003-01-06
  • 打赏
  • 举报
回复
收到,我想就如何通过XML层次模型表示数据关系模型做些讨论,能否留下你的Email或QQ
我的mail:orivan@163.net
QQ:8238960

8,909

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧