W3C home > Mailing lists > Public > www-forms@w3.org > March 2003

Creating new structure with XForms

From: Christian Rémillard <christian.remillard@UMontreal.CA>
Date: Mon, 24 Mar 2003 17:46:45 -0500
Message-Id: <5.2.0.9.2.20030324170025.0a273d48@poste.umontreal.ca>
To: www-forms@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:54 GMT