Multiple roots on p:output

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

Multiple roots on p:output

luismesas
I have a problem similar to http://orbeon-forms-ops-users.24843.n4.nabble.com/XPL-Sandbox-error-td27074.html

Mainly, it's bacause on the output of following code I receive multiple roots, endind on an Exception on output line.

Here is the code. I use it to connect to a webservice. I have other webservices where result has only one root element inside the body part, and they work smoothly.

        <p:processor name="oxf:delegation">
                <p:input name="interface" href="#interfaceNew"/>
                <p:input name="call" href="#delegationNew"/>
                <p:output name="data" id="newRecommendationsResult" debug=""/>
        </p:processor>       

is there any way I can assign a root to the output allowing me to "capture" those multiple roots inside it?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Multiple roots on p:output

luismesas
Nothing as asking to discover the solution.

As it is a pipeline, doing a later xslt transformation to add a common
root will solve it:

<p:processor name="oxf:xslt">
<p:input name="data" href="#newRecommendationsResult"/>
<p:input name="config">
<xsl:stylesheet version="2.0">
<xsl:template match="/">
<result>
<xsl:copy-of select="/"/>
</result>
</xsl:template>
</xsl:stylesheet>
</p:input>
<p:output name="data" id="newRecommendationsResultMid" debug=""/>
</p:processor>

now I have the output with root grouped.

El 26.05.11 16:00, [hidden email] escribió:

> I have a problem similar to
> http://orbeon-forms-ops-users.24843.n4.nabble.com/XPL-Sandbox-error-td27074.html
>
> Mainly, it's bacause on the output of following code I receive multiple
> roots, endind on an Exception on output line.
>
> Here is the code. I use it to connect to a webservice. I have other
> webservices where result has only one root element inside the body part, and
> they work smoothly.
>
> <p:processor name="oxf:delegation">
> <p:input name="interface" href="#interfaceNew"/>
> <p:input name="call" href="#delegationNew"/>
> <p:output name="data" id="newRecommendationsResult" debug=""/>
> </p:processor>
>
> is there any way I can assign a root to the output allowing me to "capture"
> those multiple roots inside it?
>
> Thanks
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Multiple-roots-on-p-output-tp3553641p3553641.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
--
Madurar es darte cuenta de que ya no vas a ser astronauta.



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Multiple roots on p:output

Erik Bruchez
Administrator
Glad it's working! -Erik

On Thu, May 26, 2011 at 2:13 PM, Keko <[hidden email]> wrote:

> Nothing as asking to discover the solution.
>
> As it is a pipeline, doing a later xslt transformation to add a common root
> will solve it:
>
> <p:processor name="oxf:xslt">
> <p:input name="data" href="#newRecommendationsResult"/>
> <p:input name="config">
> <xsl:stylesheet version="2.0">
> <xsl:template match="/">
> <result>
> <xsl:copy-of select="/"/>
> </result>
> </xsl:template>
> </xsl:stylesheet>
> </p:input>
> <p:output name="data" id="newRecommendationsResultMid" debug=""/>
> </p:processor>
>
> now I have the output with root grouped.
>
> El 26.05.11 16:00, [hidden email] escribió:
>>
>> I have a problem similar to
>>
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/XPL-Sandbox-error-td27074.html
>>
>> Mainly, it's bacause on the output of following code I receive multiple
>> roots, endind on an Exception on output line.
>>
>> Here is the code. I use it to connect to a webservice. I have other
>> webservices where result has only one root element inside the body part,
>> and
>> they work smoothly.
>>
>>        <p:processor name="oxf:delegation">
>>                <p:input name="interface" href="#interfaceNew"/>
>>                <p:input name="call" href="#delegationNew"/>
>>                <p:output name="data" id="newRecommendationsResult"
>> debug=""/>
>>        </p:processor>
>>
>> is there any way I can assign a root to the output allowing me to
>> "capture"
>> those multiple roots inside it?
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Multiple-roots-on-p-output-tp3553641p3553641.html
>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
> --
> Madurar es darte cuenta de que ya no vas a ser astronauta.
>
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.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
OW2 mailing lists service home page: http://www.ow2.org/wws