VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/test/schemas/import1_0.xsd@ 97825

最後變更 在這個檔案從97825是 95312,由 vboxsync 提交於 3 年 前

libs/{curl,libxml2}: OSE export fixes, bugref:8515

檔案大小: 1.0 KB
 
1<?xml version="1.0"?>
2<!-- This one tests the document access strategy for <import> -->
3<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4 targetNamespace="http://FOO"
5 xmlns:foo="http://FOO"
6 xmlns:bar="http://BAR"
7 elementFormDefault="qualified">
8 <xsd:import namespace="http://BAR" />
9
10 <!-- This document does not exist. -->
11 <xsd:import namespace="http://BAR" schemaLocation="import1_0bc.imp" />
12 <!-- This document is ok. -->
13 <xsd:import namespace="http://BAR" schemaLocation="import1_0.imp" />
14 <!-- This document will be skipped, since a schema for the namespace
15 "http://BAR" was already imported. -->
16 <xsd:import namespace="http://BAR" schemaLocation="import1_0b.imp" />
17
18
19 <xsd:element name="foo">
20 <xsd:complexType>
21 <xsd:sequence>
22 <xsd:element name="bar"/>
23 <xsd:element ref="bar:bar.A"/>
24 <!-- The reference cannot be resolved since
25 "import1_0b.imp" was skipped -->
26 <xsd:element ref="bar:bar.B"/>
27 </xsd:sequence>
28 </xsd:complexType>
29 </xsd:element>
30</xsd:schema>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette