Bill,

I don't think this post had a reply.

The answer is no, Presentation Server does not support multiple instances in a model. What is happening here is that the XForms engine is trying to generate an XML document with multiple root elements, one per instance, so this fails.

This should be supported though. RFE for this:

http://sourceforge.net/tracker/index.php?func=detail&aid=1052268&group_id=116683&atid=675663

-Erik

Bill Winspur wrote:

The test-case document listed below defines a model containing three
instances. Unfortunately, it yields the following exception message
when presentation manager attempts to render the page it supports.

----------------------------------
class org.dom4j.IllegalAddException
Message The node "[EMAIL PROTECTED] [Element: <state-provs attributes: []/>] userData: oxf:/pagesets/aggr-test/xforms-checkout-model.xml, line 10, column 16" could not be added to the branch "null" because: Cannot add another element to this Document as it already has a root element of: state-provs
---------------------------------- I do not understand this message.
Any idea what I might be doing wrong ?
Does OXF support multiple instances/model ?


Bill.

==================================================
<?xml version="1.0" encoding="UTF-8"?>
<xforms:model
   xmlns:xforms="http://www.w3.org/2002/xforms";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xs="http://www.w3.org/2001/XMLSchema";
   xsi:schemaLocation="http://www.w3.org/2002/xforms
           http://www.w3.org/MarkUp/Forms/2002/XForms-Schema.xsd";>
     <xforms:instance xforms:id="state-provs">
       <state-provs>
           <state-prov>Alabama</state-prov>
           <state-prov>Alaska</state-prov>
           <state-prov>Arizona</state-prov>              </state-provs>
   </xforms:instance>
     <xforms:instance id="countries">
       <countries>
           <country>Afghanistan</country>
           <country>Albania</country>
           <country>Algeria</country>
           <country>Andorra</country>
       </countries>      </xforms:instance>
     <xforms:instance>
       <credit-card>
           <!-- Card Info -->
           <type/>
           <number/>
           <expiration-month/>
           <expiration-year/>
           <verification-code/>
           <valid/>
       </credit-card>
   </xforms:instance>
  </xforms:model>

================================================== Bill Winspur
Manager, Wynnon Systems Inc
Mobile: 403-519-5889



------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to