Model not getting called

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

Model not getting called

mjgraham
Hi,

I have a very simple test setup which demonstrates this:

page-flow.xml:

<page id="test" path-info="/apps/test" model="test.xpl" view="test.xhtml"/>

test.xpl:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors">
    <p:param name="data" type="output"/>
        <p:processor name="oxf:identity">
          <p:input name="data">
                <form>
                  <userid>test</userid>
                </form>
          </p:input>
          <p:output name="data" debug="true" ref="data"/>
        </p:processor>
</p:config>

test.xhtml:

<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns:xforms="http://www.w3.org/2002/xforms"
        xmlns:xi="http://www.w3.org/2001/XMLInclude">
  <xhtml:head>
    <xhtml:title>Test page</xhtml:title>
    <xforms:model>
      <xforms:instance id="instance">
        <xi:include href="input:data"/>
      </xforms:instance>
    </xforms:model>
  </xhtml:head>
  <xhtml:body>
    <xhtml:p>
    <xforms:output ref="instance('instance')/userid"/>
    </xhtml:p>
  </xhtml:body>
</xhtml:html>

This shows nothing and the logs are also empty - the debug statement
does nothing. I'm using 3.5M1 - 20061009 build. What am I doing wrong?

    Cheers,

    Matthew



--
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: Model not getting called

Erik Bruchez
Administrator
Matthew,

> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>        xmlns:xforms="http://www.w3.org/2002/xforms"
>        xmlns:xi="http://www.w3.org/2001/XMLInclude">
>  <xhtml:head>
>    <xhtml:title>Test page</xhtml:title>
>    <xforms:model>
>      <xforms:instance id="instance">
>        <xi:include href="input:data"/>
>      </xforms:instance>
>    </xforms:model>
>  </xhtml:head>
>  <xhtml:body>
>    <xhtml:p>
>    <xforms:output ref="instance('instance')/userid"/>
>    </xhtml:p>
>  </xhtml:body>
> </xhtml:html>
>
> This shows nothing and the logs are also empty - the debug statement
> does nothing. I'm using 3.5M1 - 20061009 build. What am I doing wrong?
You are using an incorrect XInclude namespace. Use instead:

   xmlns:xi="http://www.w3.org/2001/XInclude"

-Erik

--
Orbeon - XForms Everywhere:
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