DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "PhysicalRecordSegmentType"
Namespace:
Content:
complex, 7 attributes, 3 elements
Defined:
Includes:
definitions of 2 attributes and 2 elements
Used:
XML Representation Summary
<...
    action
 = 
("Add" | "Update" | "Delete")
    hasSegmentKey
 = 
xs:boolean : "false"
    id
 = 
xs:string
    isIdentifiable
 = 
"true"
    objectSource
 = 
xs:anyURI
    segmentOrder
 = 
xs:integer : "1"
    urn
 = 
xs:anyURI
    >
   
Content: 
UserID*, KeyVariableReference?, FileNameIdentification?
</...>
Content Model Elements (3):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
A logical record may be stored in one or more segments housed hierarchically in a single file or in separate data files. All logical records have at least one segment.
Type Definition Detail
Type Derivation Tree
  r:IdentifiableType (extension)
      PhysicalRecordSegmentType (extension)
XML Source (w/o annotations (5); see within schema source)
<xs:complexType name="PhysicalRecordSegmentType">
<xs:complexContent>
<xs:extension base="r:IdentifiableType">
<xs:sequence>
<xs:sequence>
<xs:element minOccurs="0" ref="KeyVariableReference"/>
<xs:element minOccurs="0" name="FileNameIdentification" type="xs:string"/>
</xs:sequence>
</xs:sequence>
<xs:attribute default="1" name="segmentOrder" type="xs:integer"/>
<xs:attribute default="false" name="hasSegmentKey" type="xs:boolean"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Attribute Detail (defined in this component only; 2/7)
hasSegmentKey
Type:
xs:boolean, predefined
Use:
optional
A value of false implies default identification is by segment order in file if segmentOrder is greater than 1. If value is true, a segment key must be declared in a KeyVariableReference.
Attribute Value
Default:
"false"
XML Source (w/o annotations (1); see within schema source)
<xs:attribute default="false" name="hasSegmentKey" type="xs:boolean"/>

segmentOrder
Type:
xs:integer, predefined
Use:
optional
Indicates the position of this physical record segment within the logical record expressed as an integer.
Attribute Value
Default:
"1"
XML Source (w/o annotations (1); see within schema source)
<xs:attribute default="1" name="segmentOrder" type="xs:integer"/>
Content Element Detail (defined in this component only; 2/3)
FileNameIdentification
Type:
xs:string, predefined, simple content
If the file containing this segment has a standard section of its file name, include it here. For example a segment number.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="FileNameIdentification" type="xs:string"/>

KeyVariableReference
Type:
KeyVariableReferenceType, complex content
Reference to the Unique key variable for segment identification.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="KeyVariableReference"/>

XML schema documentation generated with DocFlex/XML SDK 1.7.2 using DocFlex/XML XSDDoc 2.1.0 template set