[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Unique XForms form that can ...instance data?

  • To: xml-dev@l...
  • Subject: Unique XForms form that can ...instance data?
  • From: tariq abdur-rahim <ecliptoid330@y...>
  • Date: Fri, 28 Jun 2002 23:47:46 -0700 (PDT)

xforms instance data
Hey all:
Suppose that in a real use case where an (XML-based) application is already designed and deployed in an industrial environment and I want to design a front-end based on XForms forms.  This application is based on XML Schema using massively the structural change possibilities on XML instances (e.g. <choice> or minOccurs="0" constructs).  This schema cannot be modified, so XForms forms have to be designed to handle the XML instances produced by the application.  As the instances could be very different, it's a very difficult exercise to write corresponding forms.
Let me illustrate the problem with an example.  Given a schema like this :
  <xs:element name="root">
        <xs:element name="optelem" minOccurs="0"/>
          <xs:element name="el1"/>
          <xs:element name="el2"/>
      <xs:attribute name="optattr" type="xs:integer" use="optional"/>
A valid instance could be :
  <i:root optattr="12">

or could be:
or something else very different.
How can I write a unique XForms form that can handle all of these initial instance data?  More precisely, how can a form modify the instance data to add or remove optional elements/attributes, or how to simulate these structural changes?
All my attempts to write XForms compliant forms failed, even using 2 models (one with the app instance, the other with a *working* instance).

t a r i q   a m i n   a b d u r - r a h i m
--  XML Application D e v e l o p e r

--  i am what's next!

Do You Yahoo!?
http://rd.yahoo.com/welcome/*http://fifaworldcup.yahoo.com/fc/en/spl of 2002 FIFA World Cup


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.