0

I am using MTURKS to create the following survey question:

<?xml version="1.0" encoding="UTF-8"?>
<QuestionForm xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionForm.xsd">
  <Question>
    <QuestionIdentifier>1</QuestionIdentifier>
    <QuestionContent>
            <Text>${question}</Text>
    </QuestionContent>
    <AnswerSpecification>
      <SelectionAnswer>
        <MinSelectionCount>1</MinSelectionCount>
        <MaxSelectionCount>1</MaxSelectionCount>
        <StyleSuggestion>radiobutton</StyleSuggestion>
        <Selections>
          <Selection>
            <SelectionIdentifier>${choice2}</SelectionIdentifier>
            <Text>Subject 1: Math</Text>
          </Selection>
          <Selection>
            <SelectionIdentifier>${choice1}</SelectionIdentifier>
            <Text>Subject 2: Science</Text>
          </Selection>
          <Selection>
            <SelectionIdentifier>Alt1</SelectionIdentifier>
            <Text>Alt1</Text>
          </Selection>
          <Selection>
            <SelectionIdentifier>noneoftheabove</SelectionIdentifier>
            <Text>Subject 3: PE</Text>
          </Selection>
        </Selections>
      </SelectionAnswer>
    </AnswerSpecification>
  </Question>
</QuestionForm>

Ideally I'd like this formatted so it appears as a single question with text in the answer that is bolded (e.g., bold the word subject in each response). I'd also like to add text between answer choices 2 and 3 so that the user sees the following: $question

Academic subjects

  1. Subject 1: Math

  2. Subject 2: Science

Other subjects

  1. Subject 3: PE

When I try to next formatting objections within the prompt, using this code:

<Text><b>Subject 2:</b> Science</Text> 

I get an error that says:

[ERROR] Error creating HIT 1 (B: x0): [-1,-1] cvc-type.3.1.2: Element 'Text' is a simple type, so it must have no element information item [children].

I also get the same error (shown above) when I try:

       </Selection>
          <Selection>
            <SelectionIdentifier>${choice1}</SelectionIdentifier>
            <Text>Subject 2: Science</Text>
          </Selection>
     <text>Academic Subjects</text>
          <Selection>
            <SelectionIdentifier>Alt1</SelectionIdentifier>

In order to intersperse text between item responses.

Thomas
  • 43,637
  • 12
  • 109
  • 140
User7598
  • 1,658
  • 1
  • 15
  • 28
  • Can you show us your HTML code? I should state that HTML is a type of XML, and the or tags can be used to render text as bold, q.v. the following article for more information http://programmers.stackexchange.com/questions/255366/why-are-the-b-and-i-tags-deprecated – Tim Biegeleisen Feb 19 '15 at 04:42
  • You have the phrase “I try to next formatting objections within the prompt” in your question above the error message and I do not understand what that means, please clarify. – Dour High Arch Feb 19 '15 at 21:29
  • Sorry... edited for clarity. – User7598 Feb 19 '15 at 21:36
  • Thanks... my revised code looks like: `Subject 2: Science`, but, I get the same error message. @TimBiegeleisen – User7598 Feb 21 '15 at 13:51

1 Answers1

0

You can make use of the <FormattedContent> tag as in this example:

<Selection>
  <SelectionIdentifier>${choice1}</SelectionIdentifier>
  <FormattedContent><![CDATA[
    <b>Subject 2:</b> Science
  ]]></FormattedContent>
</Selection>

You can read more about the <FormattedContent> tag here on the AWS Turk website.

Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360
  • That makes sense but how do I format the response options so that plain text is interspersed... I've updated my question to clarify this point. – User7598 Feb 22 '15 at 04:25