Advertisement
mab

Loop1

mab
Nov 7th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.41 KB | None | 0 0
  1. <h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa">
  2.   <h:head>
  3.     <h:title>Loop</h:title>
  4.     <model>
  5.       <instance>
  6.         <data id="build_Loop_1320712513">
  7.           <question_group jr:template="">
  8.             <question1/>
  9.             <question2/>
  10.             <question3/>
  11.           </question_group>
  12.         </data>
  13.       </instance>
  14.       <itext>
  15.         <translation lang="eng">
  16.           <text id="/data/question_group:label">
  17.             <value>Question Group</value>
  18.           </text>
  19.           <text id="/data/question_group/question1:label">
  20.             <value>Question 1</value>
  21.           </text>
  22.           <text id="/data/question_group/question1:hint">
  23.             <value/>
  24.           </text>
  25.           <text id="/data/question_group/question2:label">
  26.             <value>Question 2</value>
  27.           </text>
  28.           <text id="/data/question_group/question2:hint">
  29.             <value/>
  30.           </text>
  31.           <text id="/data/question_group/question3:label">
  32.             <value>Question 3</value>
  33.           </text>
  34.           <text id="/data/question_group/question3:hint">
  35.             <value/>
  36.           </text>
  37.         </translation>
  38.       </itext>
  39.       <bind nodeset="/data/question_group/question1" type="int"/>
  40.       <bind nodeset="/data/question_group/question2" type="int"/>
  41.       <bind nodeset="/data/question_group/question3" type="int"/>
  42.     </model>
  43.   </h:head>
  44.   <h:body>
  45.     <group>
  46.       <label ref="jr:itext('/data/question_group:label')"/>
  47.       <repeat nodeset="/data/question_group" appearance="field-list">
  48.         <input ref="/data/question_group/question1">
  49.           <label ref="jr:itext('/data/question_group/question1:label')"/>
  50.           <hint ref="jr:itext('/data/question_group/question1:hint')"/>
  51.         </input>
  52.         <input ref="/data/question_group/question2">
  53.           <label ref="jr:itext('/data/question_group/question2:label')"/>
  54.           <hint ref="jr:itext('/data/question_group/question2:hint')"/>
  55.         </input>
  56.         <input ref="/data/question_group/question3">
  57.           <label ref="jr:itext('/data/question_group/question3:label')"/>
  58.           <hint ref="jr:itext('/data/question_group/question3:hint')"/>
  59.         </input>
  60.       </repeat>
  61.     </group>
  62.   </h:body>
  63. </h:html>
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement