Creating new structure with XForms

Hello,

Is it possible to create *new* XML fragment with XForms? The subject has been posted on the list [at least] once (http://lists.w3.org/Archives/Public/www-forms/2002Jun/0053.html) but i didn't find any clear answer to this.

Given the following XML Schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
   <xs:element name="root">
      <xs:complexType>
         <xs:choice>
            <xs:choice>
               <xs:element name="a">
                  <xs:complexType>
                     <xs:sequence>
                        <xs:element name="a1"/>
                        <xs:element name="a2" minOccurs="0"/>
                     </xs:sequence>
                  </xs:complexType>
               </xs:element>
               <xs:element name="b"/>
            </xs:choice>
            <xs:element name="c">
               <xs:complexType>
                  <xs:attribute name="attr" use="required"/>
               </xs:complexType>
            </xs:element>
         </xs:choice>
      </xs:complexType>
   </xs:element>
</xs:schema>

Can someone provide an XForms example that produces XML instances such as:

1.
<root>
   <a>
      <a1>content of a1</a1>
   </a>
</root>

2.
<root>
   <b>content of b</b>
</root>

3.
<root>
   <c attr="awef"/>
</root>

Thanks,

-------------------------------------------------------------------------------------
Christian Rémillard
christian.remillard@umontreal.ca
Chargé de recherche, chargé de cours
GRDS - EBSI
Université de Montréal

Pavillon Lionel-Groulx, local C-7141
Téléphone  : +1 514 343-6111 poste 1743
Télécopieur: +1 514 343-5753 

Received on Monday, 24 March 2003 17:48:53 UTC