/usr/share/foomatic/xmlschema/option.xsd is in foomatic-db 20140410-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | <?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="types.xsd" />
<xsd:simpleType name="optionTypes">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="enum" />
<xsd:enumeration value="bool" />
<xsd:enumeration value="int" />
<xsd:enumeration value="float" />
<xsd:enumeration value="string" />
<xsd:enumeration value="password" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="optionID">
<xsd:restriction base="xsd:string">
<xsd:pattern value="opt/[a-zA-Z0-9]([a-zA-Z0-9_\.-])*" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="evalID">
<xsd:restriction base="xsd:string">
<xsd:pattern value="ev/[a-zA-Z0-9]([a-zA-Z0-9_\.-])*">
</xsd:pattern>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="constraintData">
<xsd:all>
<xsd:element name="make" type="xsd:string" minOccurs="0" />
<xsd:element name="model" type="xsd:string" minOccurs="0" />
<xsd:element name="driver" type="xsd:string" minOccurs="0" />
<xsd:element name="printer" type="xsd:string" minOccurs="0" />
<xsd:element name="arg_defval" type="xsd:string" minOccurs="0" />
</xsd:all>
<xsd:attribute name="sense" type="xsd:boolean" />
</xsd:complexType>
<xsd:element name="option">
<xsd:complexType>
<xsd:all>
<xsd:element name="arg_longname" type="i18nString" />
<xsd:element name="arg_shortname" type="i18nString" />
<xsd:element name="arg_execution">
<xsd:complexType>
<xsd:all>
<xsd:element name="arg_group" type="xsd:string" minOccurs="0" />
<xsd:element name="arg_order" type="xsd:int" minOccurs="0" />
<xsd:element name="arg_section" type="xsd:string" minOccurs="0" />
<xsd:element name="arg_spot" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[a-zA-Z]" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="arg_required" minOccurs="0">
<xsd:complexType />
</xsd:element>
<xsd:element name="arg_substitution" minOccurs="0">
<xsd:complexType />
</xsd:element>
<xsd:element name="arg_postscript" minOccurs="0">
<xsd:complexType />
</xsd:element>
<xsd:element name="arg_pjl" minOccurs="0">
<xsd:complexType />
</xsd:element>
<xsd:element name="arg_composite" minOccurs="0">
<xsd:complexType />
</xsd:element>
<xsd:element name="arg_forced_composite" minOccurs="0">
<xsd:complexType />
</xsd:element>
<xsd:element name="arg_proto" type="xsd:string" minOccurs="0"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
<xsd:element name="constraints" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="constraint" type="constraintData" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="comments" type="i18nString" minOccurs="0" />
<xsd:element name="arg_max" type="xsd:float" minOccurs="0" />
<xsd:element name="arg_min" type="xsd:float" minOccurs="0" />
<xsd:element name="arg_shortname_false" type="i18nString" minOccurs="0" />
<xsd:element name="arg_maxlength" type="xsd:int" minOccurs="0" />
<xsd:element name="arg_allowedchars" type="xsd:string" minOccurs="0" />
<xsd:element name="arg_allowedregexp" type="xsd:string" minOccurs="0" />
<xsd:element name="enum_vals" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="enum_val" maxOccurs="unbounded">
<xsd:complexType>
<xsd:all>
<xsd:element name="ev_longname" type="i18nString" />
<xsd:element name="ev_shortname" type="i18nString" />
<xsd:element name="ev_driverval" type="xsd:string" />
<xsd:element name="comments" type="i18nString" minOccurs="0" />
<xsd:element name="constraints" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="constraint" type="constraintData" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:all>
<xsd:attribute name="id" type="evalID" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:all>
<xsd:attribute name="type" type="optionTypes" use="required" />
<xsd:attribute name="id" type="optionID" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:schema>
|