Advertisement
Guest User

Untitled

a guest
May 29th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.18 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>Test Telephone</h:title>
  4.     <model>
  5.       <instance>
  6.         <data id="TestTel">
  7.       <start/>
  8.           <end/>
  9.           <deviceid/>
  10.           <subscriberid/>
  11.           <simid/>
  12.           <Tel1/>
  13.       <Tel2/>
  14.         </data>
  15.       </instance>
  16.       <itext>
  17.         <translation lang="eng">
  18.           <text id="/data/Tel1:label">
  19.             <value>Contact Telephone Number</value>
  20.           </text>
  21.           <text id="/data/Tel1:hint">
  22.             <value/>
  23.           </text>
  24.       <text id="/data/Tel2:label">
  25.             <value>Contact Telephone Number</value>
  26.           </text>
  27.           <text id="/data/Tel2:hint">
  28.             <value/>
  29.           </text>
  30.         </translation>
  31.       </itext>
  32.        <bind nodeset="/data/start" type="dateTime" jr:preload="timestamp" jr:preloadParams="start"/>
  33.       <bind nodeset="/data/end" type="dateTime" jr:preload="timestamp" jr:preloadParams="end"/>
  34.       <bind nodeset="/data/deviceid" type="string" jr:preload="property" jr:preloadParams="deviceid"/>
  35.       <bind nodeset="/data/subscriberid" type="string" jr:preload="property" jr:preloadParams="subscriberid"/>
  36.       <bind nodeset="/data/simid" type="string" jr:preload="property" jr:preloadParams="simserial"/>
  37.       <bind nodeset="/data/Tel1" type="int" required="true()" constraint="regex(^[0-9]{1}[0-9]{9})$" jr:constraintMsg="Tel Number must be 10 digits long"/>
  38.       <bind nodeset="/data/Tel2" type="string" required="true()" constraint="regex(., '^[0-9]{10}$')'" jr:constraintMsg="Tel Number must be 10 digits long"/>
  39.     </model>
  40.   </h:head>
  41.   <h:body>
  42.     <group appearance="field-list">
  43.     <input ref="/data/Tel1" appearance="number">
  44.       <label ref="jr:itext('/data/Tel1:label')"/>
  45.       <hint ref="jr:itext('/data/Tel1:hint')"/>
  46.     </input>
  47.     <input appearance="number" ref="/data/Tel2">
  48.       <label ref="jr:itext('/data/Tel2:label')"/>
  49.       <hint ref="jr:itext('/data/Tel2:hint')"/>
  50.     </input>
  51.   </group>
  52.   </h:body>
  53. </h:html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement