You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nicolas Toper <nt...@jouve.fr> on 2004/02/03 15:21:45 UTC
XSP Question
Hi,
How could I store a variable that comes from a logicsheet?
I want to put an XML string (unparsed, just the string with the tags) in a
variable. But the XML data comes from a XMLDB Request.
How could I do that?
Here is my try (of course it doesn't compile :=))
String xml = (String)
" <xdb:collection>
<xdb:uri><xsp:expr>serverURI</xsp:expr></xdb:uri>
<xdb:user><xsp:expr>existUser</xsp:expr></xdb:user>
<xdb:password><xsp:expr>existPassword</xsp:expr></xdb:password>
<xdb:get-document>
<xdb:name><xsp:expr>dbid</xsp:expr></xdb:name>
<xdb:as>xml</xdb:as>
</xdb:get-document>
</xdb:collection>";
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: XSP Question
Posted by Olivier Billard <ob...@rennes.jouve.fr>.
did you try with CDATA section ?
On 03/02/2004 15:21, Nicolas Toper wrote:
> Hi,
>
> How could I store a variable that comes from a logicsheet?
>
> I want to put an XML string (unparsed, just the string with the tags) in a
> variable. But the XML data comes from a XMLDB Request.
>
> How could I do that?
>
>
>
> Here is my try (of course it doesn't compile :=))
>
> String xml = (String)
> " <xdb:collection>
> <xdb:uri><xsp:expr>serverURI</xsp:expr></xdb:uri>
> <xdb:user><xsp:expr>existUser</xsp:expr></xdb:user>
> <xdb:password><xsp:expr>existPassword</xsp:expr></xdb:password>
> <xdb:get-document>
> <xdb:name><xsp:expr>dbid</xsp:expr></xdb:name>
> <xdb:as>xml</xdb:as>
> </xdb:get-document>
> </xdb:collection>";
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org