complexType "position_type"
Namespace:
Content:
complex, 2 attributes, 8 elements
Defined:
globally in problem.xsd, see XML source
Includes:
definitions of 2 attributes and 8 elements
Used:
XML Representation Summary
<...
   
base
 = 
xs:string
   
id
 = 
xs:string
   
>
   
Content: 
</...>
Content Elements (8):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
Elements of type position_type define a position.
The position is either built up from the empty board or reached through positional changes from another position (the base position; cf. base attribute).
The position is defined by a sequence of children elements; these are applied in the order in which they appear to the the empty board or the base position.
XML Source (w/o annotations (11); see schema source)
<xs:complexType name="position_type">
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element ref="pieces">
</xs:element>
<xs:element ref="rotation">
</xs:element>
<xs:element ref="translation">
</xs:element>
<xs:element ref="reflection">
</xs:element>
<xs:element ref="swapcolors">
</xs:element>
<xs:element ref="aftermove">
</xs:element>
</xs:choice>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="remark">
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" ref="retro">
</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:complexType>
Attribute Detail
base
If present, the base attribute identifies the base position by its id attribute.
The referential integrity is enforced by the key positionIdRef of the problem element. element.
Type:
xs:string
Use:
optional
Defined:
locally, within (this) position_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 position in the scope of a problem.
The uniqueness of the value of the id attribute is enforced by the key positionId of the problem element.
Type:
xs:string
Use:
required
Defined:
locally, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:attribute name="id" type="xs:string" use="required">
</xs:attribute>
Content Element Detail
aftermove
The aftermove child element indicates that the base position is the position reached in the solution of the base twin after a specific number of moves.
Its semantics is merely visual, to allow applications to correctly display an "after move" twinning; rather, it should be immediately preceded by a pieces element that represents the modifications to the position described by the aftermove element. Programs should not visually render that pieces element.
Type:
aftermove_type, empty content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element ref="aftermove">
</xs:element>

pieces
The pieces child element contains the additions and removals of pieces.
Type:
pieces_type, complex content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element ref="pieces">
</xs:element>

reflection
The reflection child element represents the reflection of the position relative to a center, axis or (for "boards" of dimensions greater than 2) plane.
Type:
reflection_type, complex content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element ref="reflection">
</xs:element>

remark
Each remark child element contains a textual remark about the position.
Type:
signedtext_type, complex content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="remark">
</xs:element>

retro
If present, the retro child element contains retroanalytical information about the position.
Type:
signedtext_type, complex content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element maxOccurs="1" minOccurs="0" ref="retro">
</xs:element>

rotation
The rotation child element represents the rotation of the board around its centre.
Type:
rotation_type, empty content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element ref="rotation">
</xs:element>

swapcolors
The swapcolors child element causes all white pieces to become black and all black pieces to become white.
Type:
empty_type, empty content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element ref="swapcolors">
</xs:element>

translation
The translation child element represents the translation of the pieces by a vector.
Type:
translation_type, empty content
Defined:
by reference, within (this) position_type complexType
XML Source (w/o annotations (1); see schema source)
<xs:element ref="translation">
</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