跳过导航链接
退出打印视图
| Oracle VM Server for SPARC 2.0 管理指南

搜索范围:

- 本文档
- 整个文档库

### `ovf-section.xsd` 模式

示例 E-4 `ovf-section.xsd` 模式

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema
      targetNamespace="/var/opt/SUNWldom/envelope"
      xmlns:ovf="/var/opt/SUNWldom/envelope"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:import namespace="http://www.w3.org/XML/1998/namespace"
        schemaLocation="http://www.w3.org/2001/xml.xsd"/>

      <!-- The base class for a section. Subclassing this is the most common form of extensibility -->
      <xs:complexType name="Section_Type" abstract="true">
        <xs:sequence>
          <!-- The info element specifies the meaning of the section. This is typically shown
            if the section is not understood by the importer -->
          <xs:element name="Info" type="ovf:Info_Type" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      <!-- Whether the import should fail or not, if the section is not understood -->
        <xs:attribute name="required" type="xs:boolean" use="optional"/>
        <xs:anyAttribute namespace="##any"/>
        <!-- Subtypes defines more specific elements -->
      </xs:complexType>

      <!-- A basic type for a localizable string -->
      <xs:complexType name="Info_Type">
        <xs:simpleContent>
          <xs:extension base="xs:string">
            <xs:attribute ref="xml:lang"/>
          </xs:extension>
        </xs:simpleContent>
      </xs:complexType>
    </xs:schema>

版权所有 © 2007, 2010, Oracle 和/或其附属公司。 保留所有权利。 法律声明 |