Xml 不同XSD文档中的Key、KeyRef
这可能吗 比如说我有 customers.xmlXml 不同XSD文档中的Key、KeyRef,xml,xsd,Xml,Xsd,这可能吗 比如说我有 customers.xml <customers> <customer>1</customer> <customer>2</customer> </customers> 1. 2. orders.xml <orders> <order> <customer>1</customer> </order
<customers>
<customer>1</customer>
<customer>2</customer>
</customers>
1.
2.
orders.xml
<orders>
<order>
<customer>1</customer>
</order>
<order>
<customer>3</customer> Invalid as Customer 3 doesn't exist
</order>
</orders>
1.
3无效,因为客户3不存在
XSD(使用key和keyref)将如何查找这个(customer.XSD和orders.XSD也将是两个具有不同名称空间的不同文件),甚至是可能的。我看到的所有示例都处理单个文件
这是不可能的。没有XML架构构造或约束可以跨多个文件工作