| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
| 3 |
|
| 4 |
<xsd:annotation> |
| 5 |
<xsd:documentation xml:lang="en"> |
| 6 |
XML Schema Definition for spumux. |
| 7 |
Author: Alan Canon ([email protected]) |
| 8 |
Date: 1/8/2005 |
| 9 |
This Schema is made available under the terms of the GNU GPL. |
| 10 |
See http://www.gnu.org/ for details. |
| 11 |
// TODO Copy the spumux man page documentation as xsd:annotations to the below. |
| 12 |
</xsd:documentation> |
| 13 |
</xsd:annotation> |
| 14 |
|
| 15 |
<xsd:include schemaLocation="common.xsd"/> |
| 16 |
|
| 17 |
<xsd:element name="subpictures" type="SubpicturesType"/> |
| 18 |
|
| 19 |
<xsd:complexType name="SubpicturesType"> |
| 20 |
<xsd:sequence> |
| 21 |
<xsd:element name="stream" type="StreamType"/> |
| 22 |
</xsd:sequence> |
| 23 |
<xsd:attribute name="format"> |
| 24 |
<xsd:simpleType> |
| 25 |
<xsd:restriction base="xsd:token"> |
| 26 |
<xsd:enumeration value="NTSC"/> |
| 27 |
<xsd:enumeration value="PAL"/> |
| 28 |
</xsd:restriction> |
| 29 |
</xsd:simpleType> |
| 30 |
</xsd:attribute> |
| 31 |
</xsd:complexType> |
| 32 |
|
| 33 |
<xsd:complexType name="StreamType"> |
| 34 |
<xsd:choice> |
| 35 |
<xsd:sequence> |
| 36 |
<xsd:element name="spu" type="SpuType"/> |
| 37 |
</xsd:sequence> |
| 38 |
<xsd:element name="textsub" type="TextsubType"/> |
| 39 |
</xsd:choice> |
| 40 |
</xsd:complexType> |
| 41 |
|
| 42 |
<xsd:complexType name="SpuType"> |
| 43 |
<xsd:sequence> |
| 44 |
<xsd:element name="button" type="ButtonType" minOccurs="0" maxOccurs="unbounded" /> |
| 45 |
<xsd:element name="action" type="ActionType" minOccurs="0" maxOccurs="unbounded" /> |
| 46 |
</xsd:sequence> |
| 47 |
<!-- HR:MM:SS.HU --> |
| 48 |
<xsd:attribute name="start" type="xsd:string" use="optional"/> |
| 49 |
<!-- HR:MM:SS.HU --> |
| 50 |
<xsd:attribute name="end" type="xsd:string" use="optional"/> |
| 51 |
<xsd:attribute name="image" type="xsd:string"/> |
| 52 |
<xsd:attribute name="highlight" type="xsd:string"/> |
| 53 |
<xsd:attribute name="select" type="xsd:string"/> |
| 54 |
<xsd:attribute name="transparent" type="xsd:string"/> |
| 55 |
<xsd:attribute name="force" type="isOnType"/> |
| 56 |
<xsd:attribute name="autooutline" type="xsd:string"/> |
| 57 |
<xsd:attribute name="outlinewidth" type="xsd:string"/> |
| 58 |
<!-- [ autoorder="rows" | autoorder="columns" ] --> |
| 59 |
<xsd:attribute name="autoorder" type="xsd:string"/> |
| 60 |
<xsd:attribute name="xoffset" type="xsd:string"/> |
| 61 |
<xsd:attribute name="yoffset" type="xsd:string"/> |
| 62 |
</xsd:complexType> |
| 63 |
|
| 64 |
<xsd:complexType name="ButtonType"> |
| 65 |
<xsd:attribute name="name" type="xsd:string"/> |
| 66 |
<xsd:attribute name="x0" type="xsd:string"/> |
| 67 |
<xsd:attribute name="y0" type="xsd:string"/> |
| 68 |
<xsd:attribute name="x1" type="xsd:string"/> |
| 69 |
<xsd:attribute name="y1" type="xsd:string"/> |
| 70 |
<xsd:attribute name="up" type="xsd:string"/> |
| 71 |
<xsd:attribute name="down" type="xsd:string"/> |
| 72 |
<xsd:attribute name="left" type="xsd:string"/> |
| 73 |
<xsd:attribute name="right" type="xsd:string"/> |
| 74 |
</xsd:complexType> |
| 75 |
|
| 76 |
<xsd:complexType name="ActionType"> |
| 77 |
<xsd:attribute name="name" type="xsd:string"/> |
| 78 |
<xsd:attribute name="x0" type="xsd:string"/> |
| 79 |
<xsd:attribute name="y0" type="xsd:string"/> |
| 80 |
<xsd:attribute name="x1" type="xsd:string"/> |
| 81 |
<xsd:attribute name="y1" type="xsd:string"/> |
| 82 |
<xsd:attribute name="up" type="xsd:string"/> |
| 83 |
<xsd:attribute name="down" type="xsd:string"/> |
| 84 |
<xsd:attribute name="left" type="xsd:string"/> |
| 85 |
<xsd:attribute name="right" type="xsd:string"/> |
| 86 |
</xsd:complexType> |
| 87 |
|
| 88 |
|
| 89 |
<xsd:complexType name="TextsubType"> |
| 90 |
<xsd:attribute name="filename" type="xsd:string"/> |
| 91 |
<xsd:attribute name="characterset" type="xsd:string"/> |
| 92 |
<xsd:attribute name="fontsize" type="xsd:string"/> |
| 93 |
<xsd:attribute name="force" type="isOnType"/> |
| 94 |
<xsd:attribute name="font" type="xsd:string"/> |
| 95 |
<xsd:attribute name="fill-color" type="xsd:string"/> |
| 96 |
<xsd:attribute name="outline-color" type="xsd:string"/> |
| 97 |
<xsd:attribute name="outline-thickness" type="xsd:float"/> |
| 98 |
<xsd:attribute name="shadow-color" type="xsd:string"/> |
| 99 |
<xsd:attribute name="shadow-offset"> |
| 100 |
<xsd:simpleType> |
| 101 |
<xsd:restriction base="xsd:token"> |
| 102 |
<xsd:pattern value="[+-][0-9]+, [+-][0-9]+"/> |
| 103 |
</xsd:restriction> |
| 104 |
</xsd:simpleType> |
| 105 |
</xsd:attribute> |
| 106 |
<xsd:attribute name="horizontal-alignment" type="xsd:string"/> |
| 107 |
<xsd:attribute name="vertical-alignment" type="xsd:string"/> |
| 108 |
<xsd:attribute name="left-margin" type="xsd:string"/> |
| 109 |
<xsd:attribute name="right-margin" type="xsd:string"/> |
| 110 |
<xsd:attribute name="top-margin" type="xsd:string"/> |
| 111 |
<xsd:attribute name="bottom-margin" type="xsd:string"/> |
| 112 |
<xsd:attribute name="subtitle-fps" type="xsd:string"/> |
| 113 |
<xsd:attribute name="movie-fps" type="xsd:string"/> |
| 114 |
<xsd:attribute name="movie-width" type="xsd:string"/> |
| 115 |
<xsd:attribute name="movie-height" type="xsd:string"/> |
| 116 |
<xsd:attribute name="aspect"> |
| 117 |
<xsd:simpleType> |
| 118 |
<xsd:restriction base="xsd:token"> |
| 119 |
<xsd:enumeration value="16:9"/> |
| 120 |
<xsd:enumeration value="4:3"/> |
| 121 |
</xsd:restriction> |
| 122 |
</xsd:simpleType> |
| 123 |
</xsd:attribute> |
| 124 |
</xsd:complexType> |
| 125 |
|
| 126 |
</xsd:schema> |