File: StructuralComponent.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 (43 lines) | stat: -rw-r--r-- 2,288 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            
            <xsd:include schemaLocation="NrOfStructures.xsd"/>
            <xsd:include schemaLocation="RenderingMode.xsd"/>
            <xsd:include schemaLocation="Color.xsd"/>
            <xsd:include schemaLocation="Atom.xsd"/>
            <xsd:include schemaLocation="Cell.xsd"/>
            
            <xsd:group name="StructuralComponent">
                <xsd:sequence>
                    <xsd:element name="structuralComponent" type="StructuralComponent"/>
                </xsd:sequence>
            </xsd:group>
            
            <xsd:complexType name="StructuralComponent">
                <xsd:annotation>
                    <xsd:documentation>
                        A structural component is a group of structures.
                        It is generally composed of cells, although it can be composed of atoms.
                        Note that a cell can also be considered as a structural component as it is 
                        defined by a set of atoms.
                        nrOfStructures is optional and is used for optimization.
                        Attribute mode indicates what is the default 3D graphic representation.
                    </xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                    <xsd:element name="color" type="Color" minOccurs="0"/>
                    <xsd:element name="nrOfStructures" type="NrOfStructures" minOccurs="0"/>
                    <xsd:choice>
                        <xsd:element name="atom" type="Atom" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element name="cell" type="Cell" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element name="atomRef" type="AtomRef" minOccurs="0" maxOccurs="unbounded"/>
                    </xsd:choice>
                </xsd:sequence>        
                <xsd:attribute name="name" type="xsd:string"/>
                <xsd:attribute name="mode" type="RenderingMode"/>        
                <!-- adding any kind of attributes -->
                <xsd:anyAttribute namespace="##any" processContents="lax"/> 
            </xsd:complexType>
            
</xsd:schema>