complexType "twin_type"
Namespace:
Content:
complex, 3 attributes, 5 elements
Defined:
globally in problem.xsd, see XML source
Includes:
definitions of 3 attributes and 5 elements
Used:
XML Representation Summary
<...
   
base
 = 
xs:string
   
id
 = 
xs:string
   
type
 = 
("duplex" | "zeroposition")
   
>
   
Content: 
</...>
Content Elements (5):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
Elements of type twin_type contain all information about a twin of a release.
Note: Each release has >=1 twin. A twin may be based on another twin (its base twin; cf. base attribute).
XML Source (w/o annotations (9); see schema source)
<xs:complexType name="twin_type">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" ref="text">
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" ref="position">
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" ref="stipulation">
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" ref="conditions">
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" ref="solution">
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="base" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="type" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="duplex"/>
<xs:enumeration value="zeroposition"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
Attribute Detail
base
All but the first twin of a release have a base attribute.
If present, the base attribute
identifies the base twin by its id attribute.
The referential integrity is enforced by the key twinIdRef of the problem element.
Type:
xs:string
Use:
optional
Defined:
locally, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:attribute name="base" type="xs:string" use="optional">
</xs:attribute>

id
The id attribute uniquely identifies a twin in the scope of a problem.
The uniqueness of the value of the id attribute is enforced by the key twinId of the problem element.
Type:
xs:string
Use:
required
Defined:
locally, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:attribute name="id" type="xs:string" use="required">
</xs:attribute>

type
If present, the type attribute defines the twin to be special.
The following types of special twins are allowed:
  • duplex: same as base twin, but with exchanged roles for White and Black.
  • zeroposition: twin without intended solution
Type:
Use:
optional
Defined:
locally, within (this) twin_type complexType
<xs:attribute name="type" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="duplex"/>
<xs:enumeration value="zeroposition"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
Embedded Type
Derivation:
restriction of xs:string
Facets:
enumeration:
"duplex", "zeroposition"
Content Element Detail
conditions
The conditions child element indicates the fairy conditions of this twin .
If there is no conditions child element, the conditions of the base twin are inherited.
Type:
conditions_type, complex content
Defined:
by reference, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="1" minOccurs="0" ref="conditions">
</xs:element>

position
The position child element contains the position of the twin. The position can be built up from the empty board or reached through positional changes from the position of another twin.
If there is no position child element, the position of the base twin is inherited.
Type:
position_type, complex content
Defined:
by reference, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="1" minOccurs="0" ref="position">
</xs:element>

solution
If present, the solution child element represents the solution of this twin .
Type:
solution_type, complex content
Defined:
by reference, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="1" minOccurs="0" ref="solution">
</xs:element>

stipulation
The stipulation child element indicates the stipulation of this twin .
If there is no stipulation child element, the stipulation of the base twin is inherited.
Type:
stipulation_type, complex content
Defined:
by reference, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="1" minOccurs="0" ref="stipulation">
</xs:element>

text
The text child element contains an informal textal description of the twinning.
Only encouraged for twinnings that can not be epxressed using the more formal sibling elements.
Type:
xs:string, simple content
Defined:
by reference, within (this) twin_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="1" minOccurs="0" ref="text">
</xs:element>

XML Schema documentation generated with DocFlex/XML (Kit) v1.6.6
DocFlex/XML (Kit) is a freeware edition of DocFlex/XML, which is a powerful template-driven documentation and report generator from any data stored in XML files. Based on an innovative technology developed by FILIGRIS WORKS, this new tool offers virtuoso data querying and formatting capabilities not found in anything else!
Need to convert your XML data into a clear nice-looking documentation or reports? Web-ready hypertext HTML or printable MS Word / OpenOffice.org friendly RTF? DocFlex/XML may be a cheap, quick and effective solution exactly for this task!
Have questions? Not sure how to use it? Just send us e-mail to contact@filigris.com and we are always happy to help you! See also our services at www.filigris.com