File: Color.xsd

package info (click to toggle)
camitk 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 389,496 kB
  • sloc: cpp: 103,476; sh: 2,448; python: 1,618; xml: 984; makefile: 128; perl: 84; sed: 20
file content (24 lines) | stat: -rw-r--r-- 1,144 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            
            <xsd:include schemaLocation="ColorComponent.xsd"/>
            
            <xsd:complexType name="Color">
                <xsd:annotation>
                    <xsd:documentation>
                    A color is an empty element with the description of the four color
                    components (r for red, g for green, b for blue and a for alpha channel)
                    </xsd:documentation>
                </xsd:annotation>
                <xsd:complexContent> 
                    <xsd:restriction base="xsd:anyType"> 
                        <xsd:attribute name="r" type="ColorComponent" use="required"/>
                        <xsd:attribute name="g" type="ColorComponent" use="required"/>
                        <xsd:attribute name="b" type="ColorComponent" use="required"/>
                        <xsd:attribute name="a" type="ColorComponent" use="required"/>
                    </xsd:restriction>
                </xsd:complexContent> 
            </xsd:complexType>
                    
</xsd:schema>