[DDI-SRG] Proprietary Record Layout
A. G.
ilg21 at yahoo.com
Wed Jan 30 08:33:42 EST 2008
Folks:
Here is the completed sub-module for Proprietary Record Layout.
Note that the XML instance would have to reference the sub-module layout, because it is a beta:
xmlns:pr="ddi:physicaldataproduct/proprietary:3_0_Beta" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ddi:physicaldataproduct/proprietary:3_0_Beta ../XMLSchemas/Proprietry.xsd"
would need to go in the root-level element (along with other xmlns declarations).
Cheers,
Arofan
__________________________________________________
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ddi:physicaldataproduct/proprietary:3_0_Beta" xmlns:r="ddi:reusable:3_0_CR2" xmlns:p="ddi:physicaldataproduct:3_0_CR2" targetNamespace="ddi:physicaldataproduct/proprietary:3_0_Beta" elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
<xs:import namespace="ddi:reusable:3_0_CR2" schemaLocation="reusable.xsd"/>
<xs:import namespace="ddi:physicaldataproduct:3_0_CR2" schemaLocation="physicaldataproduct.xsd"/>
<xs:element name="ProprietaryRecordLayout" type="ProprietaryRecordLayoutType" substitutionGroup="p:BaseRecordLayout"/>
<xs:complexType name="ProprietaryRecordLayoutType">
<xs:annotation>
<xs:documentation>A record layout for data in proprietary system files.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="Software"/>
<xs:element ref="PhysicalRecordSegmentReference"/>
<xs:element ref="DataItemAddress" minOccurs="0"/>
<xs:element ref="DefaultNumericDataType" minOccurs="0"/>
<xs:element ref="DefaultTextDataType" minOccurs="0"/>
<xs:element ref="DefaultDateTimeDataType" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="1">
<xs:element ref="CodedDataAsNumeric"/>
<xs:element ref="CodedDataAsText"/>
</xs:choice>
<xs:element ref="ProprietaryInfo" minOccurs="0"/>
<xs:element ref="DataItems"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DataItemAddressType">
<xs:annotation>
<xs:documentation>Provides minimum information on data item address system, such as uses variable ID or Name, etc.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="r:Description" maxOcurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ProprietaryInfoType">
<xs:annotation>
<xs:documentation>Contains information proprietary to the software package which produced the data file. This is expressed as a set of name-value pairs. </xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="ProprietaryProperty" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ProprietaryPropertyType">
<xs:annotation>
<xs:documentation>A name-vlue pair providing information proprietary to the software package which produced the data. The name of a property is supplied, along with a value.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="PropertyName" type="xs:string"/>
<xs:element name="PropertyValue" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DataItemsType">
<xs:annotation>
<xs:documentation>A container for the data items contained in the file.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="DataItem" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DataItemType">
<xs:annotation>
<xs:documentation>A single point of data within the file, which may carry an over-ride of the specified default datatype.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="VariableReference"/>
<xs:element ref="DataType" minOccurs="0"/>
<xs:element ref="ProprietaryInfo" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="PhysicalRecordSegmentReference" type="r:ReferenceType">
<xs:annotation>
<xs:documentation>Reference to a physical record segment in the associated physical data product.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DataItemAddress" type="DataItemAddressType">
<xs:annotation>
<xs:documentation>Provides minimum information on data item address system such as uses variable ID or Name etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DefaultNumericDataType" type="r:NumericRepresentationType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DefaultTextDataType" type="r:TextRepresentationType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DefaultDateTimeDataType" type="r:DateTimeRepresentationType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodedDataAsNumeric" type="r:NumericRepresentationType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodedDataAsText" type="r:TextRepresentationType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProprietaryInfo" type="ProprietaryInfoType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ProprietaryProperty" type="ProprietaryDescriptorType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="VariableReference" type="r:ReferenceType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DataType" type="r:RepresentationType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DataItemsType" type="DataItemsType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="DataItemType" type="DataItemType">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.icpsr.umich.edu/pipermail/ddi-srg/attachments/20080130/ef9a1d8a/attachment.html
More information about the DDI-SRG
mailing list