Advertisement
Guest User

Example DDI+SQDX XML Document

a guest
Aug 10th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.28 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ddi:DDIInstance id="x0" version="0.0.1" agency="com.kidstrythisathome.legostormtroopr"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ddi:instance:3_1 instance.xsd sqdx:StructuredQuestionnaireDesignExtensions:0.0.b sqd_expressions.xsd"
  4.      xmlns:xhtml="http://www.w3.org/1999/xhtml"
  5.      xmlns:d="ddi:datacollection:3_1"
  6.      xmlns:ddi="ddi:instance:3_1"
  7.      xmlns:g="ddi:group:3_1"
  8.      xmlns:r="ddi:reusable:3_1"
  9.      xmlns:sqdx="sqdx:StructuredQuestionnaireDesignExtensions:0.0.b">
  10.     <g:ResourcePackage id="">
  11.         <g:Purpose id="">
  12.             <r:Content/>
  13.         </g:Purpose>
  14.         <d:ControlConstructScheme id="">
  15.             <d:QuestionConstruct id="AcidTest_QC_1" version="0.0.1">
  16.                 <d:QuestionReference>
  17.                     <r:Scheme>
  18.                         <r:ID>qsAcidTest</r:ID>
  19.                         <r:IdentifyingAgency>com.kidstrythisathome.legostormtroopr</r:IdentifyingAgency>
  20.                         <r:Version>0.0.1</r:Version>
  21.                     </r:Scheme>
  22.                     <r:ID>AcidTest_Q_1</r:ID>
  23.                     <r:IdentifyingAgency>com.kidstrythisathome.legostormtroopr</r:IdentifyingAgency>
  24.                     <r:Version>0.0.1</r:Version>
  25.                 </d:QuestionReference>
  26.             </d:QuestionConstruct>
  27.             <sqdx:CaseSwitch id="CS_1">
  28.                 <sqdx:SwitchExpression>
  29.                     <r:Code/>
  30.                 </sqdx:SwitchExpression>
  31.                 <sqdx:Case>
  32.                     <sqdx:SwitchValue>
  33.                         <r:Code/>
  34.                     </sqdx:SwitchValue>
  35.                     <sqdx:CaseConstructReference>
  36.                         <r:URN/>
  37.                     </sqdx:CaseConstructReference>
  38.                 </sqdx:Case>
  39.             </sqdx:CaseSwitch>
  40.             <sqdx:Foo id="Bar"/>
  41.         </d:ControlConstructScheme>
  42.         <d:QuestionScheme id="qsAcidTest" version="0.0.1" agency="com.kidstrythisathome.legostormtroopr">
  43.             <d:QuestionItem id="AcidTest_Q_1" version="0.0.1">
  44.                 <d:QuestionText>
  45.                     <d:LiteralText>
  46.                         <d:Text>You told me your dog likes to play fetch, what does </d:Text>
  47.                     </d:LiteralText>
  48.                     <sqdx:ExtendedConditionalText>
  49.                         <d:Expression>
  50.                             <r:Code programmingLanguage="Pseudocode">if sex == 'Male' {return 'he'} else if sex == 'Female' {return 'she'} else {return 'they'}</r:Code>
  51.                         </d:Expression>
  52.                         <sqdx:Default>...</sqdx:Default>
  53.                         <sqdx:Static>he/she</sqdx:Static>
  54.                     </sqdx:ExtendedConditionalText>
  55.                 </d:QuestionText>
  56.                 <d:TextDomain/>
  57.             </d:QuestionItem>
  58.         </d:QuestionScheme>
  59.     </g:ResourcePackage>
  60. </ddi:DDIInstance>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement