DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "NCubeInstanceType"
Namespace:
Content:
complex, 7 attributes, 12 elements
Defined:
Includes:
definitions of 9 elements
Used:
XML Representation Summary
<...
    action
 = 
("Add" | "Update" | "Delete")
    id
 = 
xs:string
    isVersionable
 = 
"true"
    objectSource
 = 
xs:anyURI
    urn
 = 
xs:anyURI
    version
 = 
xs:string
    versionDate
 = 
(xs:dateTime | xs:date | xs:gYearMonth | xs:gYear | xs:duration)
    >
   
Content: 
UserID*, VersionResponsibility?, VersionRationale*, NCubeReference, Attribute*, DataItem+, DefaultDataType?, DefaultDelimiter?, DefaultDecimalPositions?, r:DefaultDecimalSeparator?, r:DefaultDigitGroupSeparator?, NumberOfCases?
</...>
Content Model Elements (12):
All Direct / Indirect Based Elements (1):
Known Usage Locations
Annotation
A container for defining an instance of an NCube, which allows specifying the values of the attributes attached to a NCube.
Type Definition Detail
Type Derivation Tree
      r:VersionableType (extension)
          NCubeInstanceType (extension)
XML Source (w/o annotations (10); see within schema source)
<xs:complexType name="NCubeInstanceType">
<xs:complexContent>
<xs:extension base="r:VersionableType">
<xs:sequence>
<xs:element ref="NCubeReference"/>
<xs:element maxOccurs="unbounded" minOccurs="0" ref="Attribute"/>
<xs:element maxOccurs="unbounded" ref="DataItem"/>
<xs:element minOccurs="0" name="DefaultDataType" type="xs:string"/>
<xs:element minOccurs="0" name="DefaultDelimiter" type="xs:string"/>
<xs:element minOccurs="0" name="DefaultDecimalPositions" type="xs:integer"/>
<xs:element minOccurs="0" ref="r:DefaultDecimalSeparator"/>
<xs:element minOccurs="0" ref="r:DefaultDigitGroupSeparator"/>
<xs:element minOccurs="0" name="NumberOfCases" type="xs:integer"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Content Element Detail (defined in this component only; 9/12)
Attribute
Type:
AttributeType, complex content
This is an attribute attached to the NCube as a whole or a region of the NCube as defined in the logical description. The content of the attribute can be provided as a single value or reference a location in the data store where the attribute value will be found.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" minOccurs="0" ref="Attribute"/>

DataItem
Type:
DataItemType, complex content
Identifies a physical storage location for an individual data entry, serving as a link between the physical location and the logical content description of each data item. Note that only one data item is described here, since the structure describes all data and meta data for the NCube. That is to day that in this desciption, each row of data in the referenced file corresponds to the same NCube of data.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="unbounded" ref="DataItem"/>

DefaultDataType
Type:
xs:string, predefined, simple content
An explicit definition of the data type that is applied to the majority of the dataitems reducing the amount of repetitive markup required. It can be overridden at the dataitem level. This field is necessary in the case of some numeric data formats where the format definition would allow real values, but the values are integer values. Allowed values are: integer (default), real, string.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="DefaultDataType" type="xs:string"/>

DefaultDecimalPositions
Type:
xs:integer, predefined, simple content
Number of decimal places for data with an implied decimal separator that is applied to the majority of the dataitems reducing the amount of repetitive markup required. It can be overridden at the dataitem level. Another expression is the decimal scaling factor (SAS). Default: 0.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="DefaultDecimalPositions" type="xs:integer"/>

DefaultDelimiter
Type:
xs:string, predefined, simple content
Delimiter definition for delimited (free field) data that is applied to the majority of the dataitems reducing the amount of repetitive markup required. It can be overridden at the dataitem level. Allowed values are: Empty (default), Tab, Blank, AnyString. If a delimiter is used, free field (delimited data) is assumed; binary formats are not allowed.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="DefaultDelimiter" type="xs:string"/>

NCubeReference
Type:
r:ReferenceType, complex content
Reference to the logical NCube description.
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="NCubeReference"/>

NumberOfCases
Type:
xs:integer, predefined, simple content
Total number of cases represented by the contents of the NCube. This is normally the sum of the cell contents when when the NCube contains counts and sub-totals are not included.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="NumberOfCases" type="xs:integer"/>

r:DefaultDecimalSeparator
Type:
r:OneCharStringType, simple content
The character used to separate the integer and the fraction part of a number (if an explicit separator is used in the data) that is applied to the majority of the dataitems reducing the amount of repetitive markup required. It can be overridden at the dataitem level. Allowed values are: None (default), Dot, Comma, Other. On the basis of the data definition in DDI documents, data processing tools could compute the necessary precision width on the basis of the format width and the existence of separators. Appropriate data types could be used, i.e. float or double, short or long. The decimal separator definition only makes sense with some XML Schema primitives. This is a default which may be overridden in specific cases.
Simple Content
xs:string
maxLength:
1
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="r:DefaultDecimalSeparator"/>

r:DefaultDigitGroupSeparator
Type:
r:OneCharStringType, simple content
The character used to separate groups of digits (if an explicit separator is used in the data) that is applied to the majority of the dataitems reducing the amount of repetitive markup required. It can be overridden at the dataitem level. Allowed values are: None (default), Dot, Comma, Other. The decimal separator definition makes only sense with some XML Schema primitives. This is a default which may be overridden in specific cases.
Simple Content
xs:string
maxLength:
1
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="r:DefaultDigitGroupSeparator"/>

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