Advertisement
Guest User

DDI XML Extensions schema, part 2

a guest
Aug 16th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.20 KB | None | 0 0
  1.  
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:d="ddi:datacollection:3_1" xmlns:r="ddi:reusable:3_1" xmlns="ddix:ExtendedDataCollection:3_1" xmlns:ns1="ddi:ExtendedDataCollection:3_1" targetNamespace="ddi:ExtendedDataCollection:3_1" elementFormDefault="qualified">
  4.     <xs:import namespace="ddi:datacollection:3_1" schemaLocation="datacollection.xsd"/>
  5.     <xs:import namespace="ddi:reusable:3_1" schemaLocation="reusable.xsd"/>
  6.     <xs:complexType name="ExtendedConditionalTextType">
  7.         <xs:annotation>
  8.             <xs:documentation>Text which has a changeable value, based on a condition expressed in Code. This is an extension of the standard DDI ConditionalText in the DataCollection Module, that provides support for default values for conditional text and text for static environments.</xs:documentation>
  9.         </xs:annotation>
  10.         <xs:complexContent>
  11.             <xs:extension base="d:ConditionalTextType">
  12.                 <xs:sequence>
  13.                     <xs:element name="Default" type="r:StructuredStringType">
  14.                         <xs:annotation>
  15.                             <xs:documentation>The text to display prior to a dynamic change of text in an electronic environment.</xs:documentation>
  16.                         </xs:annotation>
  17.                     </xs:element>
  18.                     <xs:element name="Static" type="r:StructuredStringType">
  19.                         <xs:annotation>
  20.                             <xs:documentation>The text to display when dynamic changes of text are not available. For example, on paper forms or non-dynamic electronic forms - such as javascript less environments.</xs:documentation>
  21.                         </xs:annotation>
  22.                     </xs:element>
  23.                 </xs:sequence>
  24.             </xs:extension>
  25.         </xs:complexContent>
  26.     </xs:complexType>
  27.     <xs:complexType name="QuestionItemWithTimeTaken">
  28.         <xs:complexContent>
  29.             <xs:extension base="d:QuestionItemType">
  30.                 <xs:sequence>
  31.                     <xs:element name="ApproximateTimeToComplete" type="xs:duration">
  32.                         <xs:annotation>
  33.                             <xs:documentation>The estimate time that a standard respondent will take to complete this question. This is stored as an ISO 8601 duration, so can range from fractions of a second to full years.</xs:documentation>
  34.                         </xs:annotation>
  35.                     </xs:element>
  36.                 </xs:sequence>
  37.             </xs:extension>
  38.         </xs:complexContent>
  39.     </xs:complexType>
  40. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement