xform:model location in document?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

xform:model location in document?

Pascal Heus
Couple of quick questions (this is for ops 3.x):
- is it mandatory for the <xforms:model> element to be located in the document header or can they appear anywhere?
- if the above is true, must the <xforms:model> be a direct child of the html <header> element or can it be at any level like in:
<header>
    <meta ...>
        <xforms:model>
             ...
        </xforms:model>
    </meta>
</header>

thanks
*P


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: xform:model location in document?

Richard Braman
Message
it shoud be inside the <head>, there is no <header> tag that i know of .  I think it should be a direct child of <head> but I am not sure.  I usually put it after <title>.
-----Original Message-----
From: Pascal Heus [mailto:[hidden email]]
Sent: Saturday, February 25, 2006 10:03 AM
To: [hidden email]
Subject: [ops-users] xform:model location in document?

Couple of quick questions (this is for ops 3.x):
- is it mandatory for the <xforms:model> element to be located in the document header or can they appear anywhere?
- if the above is true, must the <xforms:model> be a direct child of the html <header> element or can it be at any level like in:
<header>
    <meta ...>
        <xforms:model>
             ...
        </xforms:model>
    </meta>
</header>

thanks
*P


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xform:model location in document?

Erik Bruchez
Administrator
Correct.

-Erik

Richard Braman wrote:

> it shoud be inside the <head>, there is no <header> tag that i know
> of .  I think it should be a direct child of <head> but I am not sure.  
> I usually put it after <title>.
>
>     -----Original Message-----
>     *From:* Pascal Heus [mailto:[hidden email]]
>     *Sent:* Saturday, February 25, 2006 10:03 AM
>     *To:* [hidden email]
>     *Subject:* [ops-users] xform:model location in document?
>
>     Couple of quick questions (this is for ops 3.x):
>     - is it mandatory for the <xforms:model> element to be located in
>     the document header or can they appear anywhere?
>     - if the above is true, must the <xforms:model> be a direct child of
>     the html <header> element or can it be at any level like in:
>     <header>
>         <meta ...>
>             <xforms:model>
>                  ...
>             </xforms:model>
>         </meta>
>     </header>
>     thanks
>     *P




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xform:model location in document?

Pascal Heus
Erik:
Do you know if it's possible to get an XForm instance through an Ajax like HttpRequest and then inject it in the head element and the associated form in he body element? I was thinking about simply using something like "document.getElementsByTagName("head")[0].appendChild(e)" where e would be the xmlResponseText to the httprequest but this seem to fail (JS does not let me append the element). I suspect this is what the orbeon xform ajax engine is doing, is there any code or docs I can look at as an example?
thanks
<p/>


Erik Bruchez wrote:
Correct.

-Erik

Richard Braman wrote:
it shoud be inside the <head>, there is no <header> tag that i know of .  I think it should be a direct child of <head> but I am not sure.  I usually put it after <title>.

    -----Original Message-----
    *From:* Pascal Heus [[hidden email]]
    *Sent:* Saturday, February 25, 2006 10:03 AM
    *To:* [hidden email]
    *Subject:* [ops-users] xform:model location in document?

    Couple of quick questions (this is for ops 3.x):
    - is it mandatory for the <xforms:model> element to be located in
    the document header or can they appear anywhere?
    - if the above is true, must the <xforms:model> be a direct child of
    the html <header> element or can it be at any level like in:
    <header>
        <meta ...>
            <xforms:model>
                 ...
            </xforms:model>
        </meta>
    </header>
    thanks
    *P




-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xform:model location in document?

Pascal Heus
In reply to this post by Erik Bruchez
Actually, trying to answer my own question, would Sarissa be the right package to get xml forms in and out of the head or body?
<p/>

Erik Bruchez wrote:
Correct.

-Erik

Richard Braman wrote:
it shoud be inside the <head>, there is no <header> tag that i know of .  I think it should be a direct child of <head> but I am not sure.  I usually put it after <title>.

    -----Original Message-----
    *From:* Pascal Heus [[hidden email]]
    *Sent:* Saturday, February 25, 2006 10:03 AM
    *To:* [hidden email]
    *Subject:* [ops-users] xform:model location in document?

    Couple of quick questions (this is for ops 3.x):
    - is it mandatory for the <xforms:model> element to be located in
    the document header or can they appear anywhere?
    - if the above is true, must the <xforms:model> be a direct child of
    the html <header> element or can it be at any level like in:
    <header>
        <meta ...>
            <xforms:model>
                 ...
            </xforms:model>
        </meta>
    </header>
    thanks
    *P




-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xform:model location in document?

Alessandro  Vernet
Administrator
In reply to this post by Pascal Heus
Pascal,

It looks like you want to load an instance dynamically when the page
is loaded instead of having it defined statically in the XHTML +
XForms file. To do this, you don't need to write any JavaScript. Isn't
that good news? :)

See for instance the XForms Internationalization example. In
i18n-form.xhtml, you will see: <xforms:instance id="i18n"
src="i18n-resources"/>. This will load the instance from the
"i18n-resources". This is a relative URI which runs i18n-resources.xpl
because there is a <page path-info="/xforms-i18n/i18n-resources"
model="i18n-resources.xpl"/> in the page flow.

Alex

On 3/1/06, Pascal Heus <[hidden email]> wrote:

>  Erik:
>  Do you know if it's possible to get an XForm instance through an Ajax like
> HttpRequest and then inject it in the head element and the associated form
> in he body element? I was thinking about simply using something like
> "document.getElementsByTagName("head")[0].appendChild(e)" where e would be
> the xmlResponseText to the httprequest but this seem to fail (JS does not
> let me append the element). I suspect this is what the orbeon xform ajax
> engine is doing, is there any code or docs I can look at as an example?
>  thanks
>  <p/>
>
>
>  Erik Bruchez wrote:
> Correct.
>
>  -Erik
>
>  Richard Braman wrote:
>
> it shoud be inside the <head>, there is no <header> tag that i know of .  I
> think it should be a direct child of <head> but I am not sure.  I usually
> put it after <title>.
>
>      -----Original Message-----
>      *From:* Pascal Heus [mailto:[hidden email]]
>      *Sent:* Saturday, February 25, 2006 10:03 AM
>      *To:* [hidden email]
>      *Subject:* [ops-users] xform:model location in document?
>
>      Couple of quick questions (this is for ops 3.x):
>      - is it mandatory for the <xforms:model> element to be located in
>      the document header or can they appear anywhere?
>      - if the above is true, must the <xforms:model> be a direct child of
>      the html <header> element or can it be at any level like in:
>      <header>
>          <meta ...>
>              <xforms:model>
>                   ...
>              </xforms:model>
>          </meta>
>      </header>
>      thanks
>      *P
>
>
>
>
> ________________________________
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: xform:model location in document?

Erik Bruchez
Administrator
In reply to this post by Pascal Heus
Pascal,

With OPS, XForms markup does not make it to the browser, where Sarissa
would run, so I don't see how this gets you anywhere. But if you explain
a little better the problem you are trying to solve, maybe we can help
you find a solution.

-Erik

Pascal Heus wrote:

> Actually, trying to answer my own question, would Sarissa be the right
> package to get xml forms in and out of the head or body?||
> <p/>
>
> Erik Bruchez wrote:
>> Correct.
>>
>> -Erik
>>
>> Richard Braman wrote:
>>> it shoud be inside the <head>, there is no <header> tag that i know
>>> of .  I think it should be a direct child of <head> but I am not
>>> sure.  I usually put it after <title>.
>>>
>>>     -----Original Message-----
>>>     *From:* Pascal Heus [mailto:[hidden email]]
>>>     *Sent:* Saturday, February 25, 2006 10:03 AM
>>>     *To:* [hidden email]
>>>     *Subject:* [ops-users] xform:model location in document?
>>>
>>>     Couple of quick questions (this is for ops 3.x):
>>>     - is it mandatory for the <xforms:model> element to be located in
>>>     the document header or can they appear anywhere?
>>>     - if the above is true, must the <xforms:model> be a direct child of
>>>     the html <header> element or can it be at any level like in:
>>>     <header>
>>>         <meta ...>
>>>             <xforms:model>
>>>                  ...
>>>             </xforms:model>
>>>         </meta>
>>>     </header>
>>>     thanks
>>>     *P
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws