Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <g:ResourcePackage id="IDx" xsi:schemaLocation="ddi:instance:3_1 instance.xsd ddi:ExtendedDataCollection:3_1 Extensions.xsd" xmlns:a="ddi:archive:3_1" xmlns:ddi="ddi:instance:3_1" xmlns:g="ddi:group:3_1" xmlns:r="ddi:reusable:3_1" xmlns:d="ddi:datacollection:3_1" xmlns:xd="ddi:ExtendedDataCollection:3_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <g:Purpose id="">
- <r:Content>Example QuestionScheme demonstrating xsi:type extensions in DDI3.1</r:Content>
- </g:Purpose>
- <d:QuestionScheme id="exampleScheme">
- <d:QuestionItem id="exampleQuestion" xsi:type="xd:QuestionItemWithTimeTaken">
- <d:QuestionText>
- <d:LiteralText>
- <d:Text>You told me your dog likes to play fetch, what does </d:Text>
- </d:LiteralText>
- <d:ConditionalText xsi:type="xd:ExtendedConditionalTextType">
- <d:Expression>
- <r:Code programmingLanguage="Pseudocode">if sex == 'Male' {return 'he'} else if sex == 'Female' {return 'she'} else {return 'they'}</r:Code>
- </d:Expression>
- <xd:Default>...</xd:Default>
- <xd:Static>he/she</xd:Static>
- </d:ConditionalText>
- </d:QuestionText>
- <d:TextDomain/>
- <xd:ApproximateTimeToComplete>PT2M30S</xd:ApproximateTimeToComplete>
- </d:QuestionItem>
- </d:QuestionScheme>
- </g:ResourcePackage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement