Untitled

                Never    
XML
       
<html
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xf="http://www.w3.org/2002/xforms">
   <head>
      <title>Address Form</title>
      <xf:model>

         <xf:instance id="main">
            <Address xmlns="">
               <LocationStreetFullText />
               <LocationCityName />
               <LocationStateName />
               <LocationPostalID />
            </Address>
         </xf:instance>

         <xf:instance id="main-kopia">
            <Address xmlns="">
               <LocationStreetFullText />
               <LocationCityName />
               <LocationStateName />
               <LocationPostalID />
            </Address>
         </xf:instance>

         <xf:instance xmlns="" id="phonebook">
            <PhoneList>
               <Person>
                  <Name>Peggy</Name>
                  <Phone>123</Phone>
               </Person>
               <Person>
                  <Name>Dan</Name>
                  <Phone>456</Phone>
               </Person>
               <Person>
                  <Name>John</Name>
                  <Phone>789</Phone>
               </Person>
               <Person>
                  <Name>Sue</Name>
                  <Phone>234</Phone>
               </Person>
            </PhoneList>
         </xf:instance>

         <xf:instance xmlns="" id="phonebook-row">
            <Person>
               <Name />
               <Phone />
            </Person>
         </xf:instance>

      </xf:model>
   </head>
   <body>
      <xf:group ref="instance('main')">
         <fieldset>
            <legend>Mailing Address</legend>
            <xf:input ref="LocationStreetFullText">
               <xf:label>Street: </xf:label>
            </xf:input>
            <br />
            <xf:input ref="LocationCityName">
               <xf:label>City:</xf:label>
            </xf:input>
            <br />
            <xf:input ref="LocationStateName">
               <xf:label>State:</xf:label>
            </xf:input>
            <br />
            <xf:input ref="LocationPostalID">
               <xf:label>Postal Code:</xf:label>
            </xf:input>
         </fieldset>
      </xf:group>

      <xf:group ref="instance('main-kopia')">
         <fieldset>
            <legend>Mailing Address #2</legend>
            <xf:input ref="LocationStreetFullText">
               <xf:label>Street: </xf:label>
            </xf:input>
            <br />
            <xf:input ref="LocationCityName">
               <xf:label>City  #2:</xf:label>
            </xf:input>
            <br />
            <xf:input ref="LocationStateName">
               <xf:label>State  #2:</xf:label>
            </xf:input>
            <br />
            <xf:input ref="LocationPostalID">
               <xf:label>Postal Code  #2:</xf:label>
            </xf:input>
         </fieldset>
      </xf:group>

      <xf:group ref="instance('phonebook-row')">
         <fieldset>
            New phonebook row: 
            <xf:input ref="Name">
               <xf:label>Name:</xf:label>
            </xf:input>
            <xf:input ref="Phone">
               <xf:label>Phone:</xf:label>
            </xf:input>
            <xf:trigger>
               <xf:label>Add</xf:label>
               <xf:insert at="index('phonebook')" position="after" nodeset="instance('phonebook-row')" context="instance('phonebook')/PhoneList"   />
            </xf:trigger>
         </fieldset>
      </xf:group>

      <xf:group ref="instance('phonebook')">
         <fieldset>
            <legend>Company Phone List</legend>
            <p><b>Name, Phone</b></p>
            <xf:repeat nodeset="Person">
               <p>
               <xf:output ref="Name"/>,
               <xf:output ref="Phone"/>
               </p>
            </xf:repeat>
            
         </fieldset>
      </xf:group>

      <xf:group>
         <widget:xforms-instance-inspector id="orbeon-xforms-inspector" xmlns:widget="http://orbeon.org/oxf/xml/widget" />
      </xf:group>
   </body>
</html>

Raw Text