Re: One model, many instances, is it correct?

"l0b0" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization http://groups.google.com
Message-ID <[email protected]>
Works for me. However, other bugs can easily halt your progress for no
apparent reason. Check out the XForms bugs at
https://bugzilla.mozilla.org/query.cgi (Product "Core", Component
"XForms") for more info.

Some working sample code:

<!-- Slots instance and bindings -->
<xf:instance id="slotsFile"
src="instances/magnetInterconnectSlots.xml"/>
<xf:bind id="slot-bind"
nodeset="instance('slotsFile')/slot:Slots/slot:Slot"
readonly="true()"/>

<!-- Job statuses instance and bindings -->
<xf:instance id="jobStatuses">
  <statuses xmlns="">
    <status>
      <label>Pending</label>
      <value>R</value>
    </status>
    <status>
      <label>In Progress</label>
      <value>RA</value>
    </status>
    <status>
      <label>Done</label>
      <value>T</value>
    </status>
    <status>
      <label>Cancelled</label>
      <value>TX</value>
    </status>
  </statuses>
</xf:instance>
<xf:bind id="job-statuses-bind" nodeset="instance('jobStatuses')"
readonly="true()"/>
...
<xf:instance id="jobsFile" src="jobs.xml"/>
<xf:bind id="job-instance-bind" nodeset="instance('jobsFile')"/>
...
<xf:repeat id="job-repeat"
nodeset="instance('jobsFile')/jobs:Jobs/jobs:Job[position()!=last()]">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.