[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-wpkg/sources/wpkg/xsd/ -> hosts.xsd (source)

   1  <?xml version="1.0" encoding="UTF-8"?>
   2  <xsd:schema targetNamespace="http://www.wpkg.org/hosts"
   3      elementFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   4      xmlns="http://www.wpkg.org/hosts" xmlns:wpkg="http://www.wpkg.org/wpkg">
   5  
   6      <xsd:import namespace="http://www.wpkg.org/wpkg" schemaLocation="wpkg.xsd">
   7          <xsd:annotation>
   8              <xsd:documentation>Include WPKG master definition.
   9              </xsd:documentation>
  10          </xsd:annotation>
  11      </xsd:import>
  12  
  13      <xsd:element name="wpkg" type="wpkg">
  14          <xsd:annotation>
  15              <xsd:documentation>Root element for host definitions.
  16              </xsd:documentation>
  17          </xsd:annotation>
  18      </xsd:element>
  19  
  20      <xsd:complexType name="wpkg">
  21          <xsd:sequence minOccurs="1" maxOccurs="unbounded">
  22              <xsd:element name="host" type="host"></xsd:element>
  23          </xsd:sequence>
  24      </xsd:complexType>
  25  
  26      <xsd:complexType name="host">
  27          <xsd:sequence maxOccurs="1" minOccurs="0">
  28              <xsd:sequence maxOccurs="1" minOccurs="0">
  29                  <xsd:element name="condition" type="wpkg:condition">
  30                      <xsd:annotation>
  31                          <xsd:documentation>Define condition under which this host entry is applied.</xsd:documentation>
  32                      </xsd:annotation></xsd:element>
  33              </xsd:sequence>
  34              <xsd:choice maxOccurs="unbounded" minOccurs="0">
  35                  <xsd:element name="variable" type="wpkg:variable">
  36                      <xsd:annotation>
  37                          <xsd:documentation>Define an environment variable to be set when the host entry applies.</xsd:documentation>
  38                      </xsd:annotation></xsd:element>
  39                  <xsd:element name="profile" type="profileReference">
  40                      <xsd:annotation>
  41                          <xsd:documentation>Define profile which should be applied to matching host.</xsd:documentation>
  42                      </xsd:annotation></xsd:element>
  43              </xsd:choice>
  44          </xsd:sequence>
  45          <xsd:attribute name="name" type="xsd:string" use="optional">
  46              <xsd:annotation>
  47                  <xsd:documentation>Hostname specification. It might contain regular expressions as well as well 
  48  as IP-address ranges.
  49  
  50  Direct match: This is tried first always. If the hostname matches exactly the 
  51  value of 'name' this host node is applied to the machine.
  52  
  53  IP-Ranges: format has to be specified as follows: 
  54  start[-end].start[-end].start[-end].start[-end] examples: 192.168.1.1 
  55  192.168.1.1-254 192.168.1-5.20-50
  56  
  57  Regular expressions: example: &quot;test-.*&quot; will match all machines where the 
  58  hostname is starting with &quot;test-&quot; string.
  59  
  60  If no name attribute exists then the host entry will always match. You can 
  61  omit the name attribute and use extended attribute matching like hostname 
  62  (which matches the host name only, but not IP), ipaddresses, domainname etc.
  63  </xsd:documentation>
  64              </xsd:annotation>
  65          </xsd:attribute>
  66          <xsd:attribute name="profile-id" type="xsd:string"
  67              use="optional">
  68              <xsd:annotation>
  69                  <xsd:documentation>Main profile. You can specify the applying profile as separate &quot;profile&quot; nodes 
  70  as well but if there is only one single profile it is recommended to use the 
  71  profile-id attribute.
  72  </xsd:documentation>
  73              </xsd:annotation>
  74          </xsd:attribute>
  75          <xsd:attributeGroup ref="wpkg:HostMatch"></xsd:attributeGroup>
  76      </xsd:complexType>
  77  
  78      <xsd:complexType name="profileReference">
  79          <xsd:sequence maxOccurs="1" minOccurs="0">
  80              <xsd:element name="condition" type="wpkg:condition"></xsd:element>
  81          </xsd:sequence>
  82          <xsd:attribute name="id" type="xsd:string" use="required">
  83              <xsd:annotation>
  84                  <xsd:documentation>
  85                      ID referencing to the profile defined in
  86                      profiles.xml
  87                  </xsd:documentation>
  88              </xsd:annotation>
  89          </xsd:attribute>
  90          <xsd:attributeGroup ref="wpkg:HostMatch"></xsd:attributeGroup>
  91      </xsd:complexType>
  92  </xsd:schema>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1