All,
I'm having some problems getting this syntax to work: <xforms:instance id="knowledgebase"> <xi:include href="input:data" xxi:omit-xml-base="true"/> </xforms:instance> The instance is never populated. As a workaround, I am currently using this: <xforms:instance id="knowledgebase"> <xsl:copy-of select="/"/> </xforms:instance> which works just fine. Here is what my XPL IO declerations look like: <p:param name="data" type="output"/> <p:param name="instance" type="input" /> and this is my pageflow definition for that page: <page path-info="/knowledgebase/edit" id="knowledgebase.edit" view="oxf:/knowledgebase/view/edit.knowledgebase.xsl" model="oxf:/knowledgebase/service/get.knowledgebase.xpl"> </page> I've been scratching my head about this for some time, and I am convinced that I am missing something very obvious! Has anyone had any problems with this before? Any ideas what I am missing here? Thanks! Sincerely, Henrik Pettersen Advanced Computation Laboratory Cancer Research UK -- 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 |
Administrator
|
Henrik,
When using XInclude, is the view directly the XHTML+XForms file, or is it an XPL file? If it is directly the XHTML+XForms file, using <xi:include href="input:data"/> should work fine. This is for instance used in the address book example (examples/address-book/view.xhtml). If it does not work in your case but works in the address book example, you might want to compare your code with the example to see if you can find a significant difference. Alex On 10/3/06, Henrik Pettersen <[hidden email]> wrote: > All, > > I'm having some problems getting this syntax to work: > > <xforms:instance id="knowledgebase"> > <xi:include href="input:data" xxi:omit-xml-base="true"/> > </xforms:instance> > > The instance is never populated. As a workaround, I am currently using this: > > <xforms:instance id="knowledgebase"> > <xsl:copy-of select="/"/> > </xforms:instance> > > which works just fine. Here is what my XPL IO declerations look like: > > <p:param name="data" type="output"/> > <p:param name="instance" type="input" /> > > and this is my pageflow definition for that page: > > <page path-info="/knowledgebase/edit" > id="knowledgebase.edit" > view="oxf:/knowledgebase/view/edit.knowledgebase.xsl" > model="oxf:/knowledgebase/service/get.knowledgebase.xpl"> > </page> > > I've been scratching my head about this for some time, and I am > convinced that I am missing something very obvious! > > Has anyone had any problems with this before? Any ideas what I am missing here? > > Thanks! > > Sincerely, > Henrik Pettersen > Advanced Computation Laboratory > Cancer Research UK > > > > > -- > 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 |
Argh! Wrong namespace!
xmlns:xi="http://orbeon.org/oxf/xml/xinclude" Thanks, Alex. Henrik On 10/7/06,
Alessandro Vernet <[hidden email]> wrote: Henrik, -- 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 |
Free forum by Nabble | Edit this page |