RE: ref in Xform

Hello,

In XForms, "instance data" exists in a special data structure called the
"XPath Data Model", which is defined, not surprisingly, in the XPath 1.0
specification. This gets initialized from the XML inline or linked from the
<xforms:instance> element.

Instance data is separate from the containing document, and can't be
accessed through normal means (such as
window.document.getElementsByTagName(), etc.), only through XPath
expressions.

Thanks,

.micah

P.S. The Working Group is finalizing a way for script to get access to the
instance data, though this won't work through window.document....)

-----Original Message-----
From: Sumitra Iyer [mailto:sumitra.iyer@patni.com]
Sent: Monday, November 19, 2001 1:24 AM
To: tvraman@almaden.ibm.com
Cc: www-forms@w3.org
Subject: ref in Xform


Take this.
<xform:input ref="order/shipTo/Street>
the xform specification says the ref attribute in the form control should
point to the
proper part of the instance data
How is instance data for this got?is it a separate xml and
how should this instance data be used?
can anyone help me on this

S


-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org]On
Behalf Of T. V. Raman
Sent: Sunday, November 18, 2001 7:34 AM
To: Jim Wissner
Cc: tvraman@almaden.ibm.com; www-forms@w3.org
Subject: Re: tree-structured select one/many


may be it was added after the last public draft published in
August --cant remember when I added it.

>>>>> "Jim" == Jim Wissner <jim@jbrix.org> writes:

    Jim> Thanks, that's perfect.  Are the nesting choices
    Jim> new?  I don't see it in the schema I have.  I see
    Jim> only items inside of choices (no choices in item
    Jim> either).  So I can't find where it allows this.  I
    Jim> must just be overlooking it I guess.

    Jim> Thanks, Jim


    Jim> At 04:36 PM 11/17/2001 -0800, T. V. Raman wrote:
    >> 1) choices can nest.  2) you can use nested repeats
    >> and appropriately point at portions of the repeating
    >> structure with selectOne
    >>
    >> 3) The previous draft (well, current public version I
    >> guess ) suggests using repeat inside selectOne or
    >> selectMany instead of choices for dynamic selection;
    >> we have since refined this and though it is not
    >> repeat that you will see there, you'll see something
    >> we all hope you'll like.
    >>
    >> --
    >> Best Regards, --raman
    >> ------------------------------------------------------------
    >>
    >> IBM Research: Human Language Technologies Phone: 1
    >> (408) 927 2608 Fax: 1 (408) 927 3012 Email:
    >> tvraman@us.ibm.com WWW:
    >> http://www.cs.cornell.edu/home/raman PGP:
    >> http://emacspeak.sf.net/raman.asc Snail: IBM Almaden
    >> Research Center, 650 Harry Road San Jose 95120

    Jim> -- www.jbrix.org Open Source Software Java - XML -
    Jim> Speech Recognition

--
Best Regards,
--raman
------------------------------------------------------------

IBM Research: Human Language Technologies
Phone:        1 (408) 927 2608
Fax:        1 (408) 927 3012
Email:        tvraman@us.ibm.com
WWW:      http://www.cs.cornell.edu/home/raman
PGP:          http://emacspeak.sf.net/raman.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120

Received on Wednesday, 21 November 2001 18:36:42 UTC