[whatwg] XML encoding of repeat blocks

Olav Junker Kjær olav at olav.dk
Wed Aug 4 05:41:28 PDT 2004


Im confused by the last example in section 5.4

<submission xmlns="uuid:d10e4fd6-2c01-49e8-8f9d-0ab964387e32">
  <repeat template="row" index="0"/>
  <field name="name_0" index="0">John Smith</field>
  <field name="count_0" index="0">2</field>
  <field name="name_1" index="0"></field>
  <field name="count_1" index="0">1</field>
</submission>

The text says that a "repeat" element is inserted for each repeat block 
in the data set. Isn't there supposed to be two repeat-elements in the 
xml, one with index 0 and one with index 1 ?

Olav Junker Kjær




More information about the whatwg mailing list