Hi, When using (the result of) a xpl-pipeline as view,
input:instance does not seem to be available. For the xforms-part, I can fix
this by doing an oxf:include of input:instance in this same pipeline, but this
is no solution for xslt-xpaths trying to use this instance, as the doc(‘input:instance’)-reference
returns empty and instance(‘abc’)-refence cannot be used. How can
this be fixed? Gts, Ronny -- 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 |
When you are declaring your inputs and outputs at the top of your XPL
pipeline, are you making sure to also declare an input for 'instance'? If that input is not declared, then that input will not be made available to your pipeline. (This is different from using XHTML where that input is automatically attached.) The top of your pipeline should look something like: <p:param name="data" type="input"/> <p:param name="instance" type="input"/> <p:param name="data" type="output"/> If you do indeed have the 'instance' input declared, then try adding a @debug attribute to that input. What is the content of that input? Hope this helps. Daniel E. Renfer http://kronkltd.net/ On 12/7/06, Ronny Theunissen <[hidden email]> wrote: > > Hi, > > When using (the result of) a xpl-pipeline as view, input:instance does not > seem to be available. For the xforms-part, I can fix this by doing an > oxf:include of input:instance in this same pipeline, but this is no solution > for xslt-xpaths trying to use this instance, as the > doc('input:instance')-reference returns empty and instance('abc')-refence > cannot be used. How can this be fixed? > > Gts, > > Ronny -- 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 |
instance is declared as input and output, debug shows it contains the correct xforms-instance What else can be wrong? gts, Ronny -- 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 |
In reply to this post by Ronthe
instance is declared as input and output, debug shows it contains the correct xforms-instance What else can be wrong? gts, Ronny -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Daniel E. Renfer Sent: Thursday, December 07, 2006 12:13 PM To: [hidden email] Subject: Re: [ops-users] difference xhtml-view vs xpl-view When you are declaring your inputs and outputs at the top of your XPL pipeline, are you making sure to also declare an input for 'instance'? If that input is not declared, then that input will not be made available to your pipeline. (This is different from using XHTML where that input is automatically attached.) The top of your pipeline should look something like: <p:param name="data" type="input"/> <p:param name="instance" type="input"/> <p:param name="data" type="output"/> If you do indeed have the 'instance' input declared, then try adding a @debug attribute to that input. What is the content of that input? Hope this helps. Daniel E. Renfer http://kronkltd.net/ On 12/7/06, Ronny Theunissen <[hidden email]> wrote: > > Hi, > > When using (the result of) a xpl-pipeline as view, input:instance does not > seem to be available. For the xforms-part, I can fix this by doing an > oxf:include of input:instance in this same pipeline, but this is no solution > for xslt-xpaths trying to use this instance, as the > doc('input:instance')-reference returns empty and instance('abc')-refence > cannot be used. How can this be fixed? > > Gts, > > Ronny -- 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 |
Ronny,
Where are you using doc('input:instance') in the XPL? Perhaps you could post some or all of the XPL that your having a problem with? Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: Ronny Theunissen [mailto:[hidden email]] >Sent: 08 December 2006 11:58 >To: [hidden email] >Subject: RE: [ops-users] difference xhtml-view vs xpl-view > > >instance is declared as input and output, debug shows it >contains the correct xforms-instance > >What else can be wrong? > >gts, >Ronny > >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf >Of Daniel E. Renfer >Sent: Thursday, December 07, 2006 12:13 PM >To: [hidden email] >Subject: Re: [ops-users] difference xhtml-view vs xpl-view > >When you are declaring your inputs and outputs at the top of >your XPL pipeline, are you making sure to also declare an >input for 'instance'? >If that input is not declared, then that input will not be >made available to your pipeline. (This is different from using >XHTML where that input is automatically attached.) > >The top of your pipeline should look something like: > ><p:param name="data" type="input"/> ><p:param name="instance" type="input"/> ><p:param name="data" type="output"/> > >If you do indeed have the 'instance' input declared, then try >adding a @debug attribute to that input. What is the content >of that input? > >Hope this helps. > >Daniel E. Renfer >http://kronkltd.net/ > > >On 12/7/06, Ronny Theunissen <[hidden email]> wrote: >> >> Hi, >> >> When using (the result of) a xpl-pipeline as view, >input:instance does >not >> seem to be available. For the xforms-part, I can fix this by >doing an >> oxf:include of input:instance in this same pipeline, but this is no >solution >> for xslt-xpaths trying to use this instance, as the >> doc('input:instance')-reference returns empty and >instance('abc')-refence >> cannot be used. How can this be fixed? >> >> Gts, >> >> Ronny > > > -- 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
|
In reply to this post by Ronthe
Ronny,
What doc('input:instance') does in processors like oxf:xslt and oxf:xinclude is access a custom input of that processor called "instance". So the question is, in your XPL, where do you use input:instance? It should be within a processor that has an input called "instance". -Erik Ronny Theunissen wrote: > Hi, > > > > When using (the result of) a xpl-pipeline as view, input:instance does > not seem to be available. For the xforms-part, I can fix this by doing > an oxf:include of input:instance in this same pipeline, but this is no > solution for xslt-xpaths trying to use this instance, as the > doc(‘input:instance’)-reference returns empty and > instance(‘abc’)-refence cannot be used. How can this be fixed? > > > > > > > > Gts, > > Ronny Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |