Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 98401 invoked by uid 500); 5 Jun 2002 16:31:12 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 98389 invoked from network); 5 Jun 2002 16:31:12 -0000 Message-ID: <52E3D1B72806D411B15C00508B121ADD0191F0D3@uskc01> From: Mike Ash To: "'cocoon-users@xml.apache.org'" Subject: RE: Getting XML from request Date: Wed, 5 Jun 2002 11:24:53 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C20CAD.86114730" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C20CAD.86114730 Content-Type: text/plain Sorry about not using plain text. What I would like to end up with is nodes from the xsp page that contain the nodes from the object i put in the request. .... What I am getting now is <mynode> <mychildnode> .... </mychildnode> </mynode> -----Original Message----- From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net] Sent: Wednesday, June 05, 2002 11:10 AM To: cocoon-users@xml.apache.org Subject: RE: Getting XML from request > I need that object back as xml in an xsp page, when I try this > xsp:request:get-attribute name="xmlData" as="xml" Correct syntax is: Result will be (IIRC): value of attribute For: Result will be: value of attribute For: Object o = ; Result will be assigned to object 'o'. > The question is then how do I get the data into the xsp as > real xml nodes that I can use in a transformation step with xsl? What do you mean? PS PLEASE SEND PLAIN TEXT EMAILS Vadim -----Original Message----- From: Mike Ash [mailto:mash@euronetworldwide.com] Sent: Wednesday, June 05, 2002 11:25 AM To: 'cocoon-users@xml.apache.org' Subject: Getting XML from request I am storing xml data in the request object by using request.setAttribute("xmlData", someObject); I need that object back as xml in an xsp page, when I try this xsp:request:get-attribute name="xmlData" as="xml" it returns the "xml" as a node value instead of individual nodes. The question is then how do I get the data into the xsp as real xml nodes that I can use in a transformation step with xsl? --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: ------_=_NextPart_001_01C20CAD.86114730 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: Getting XML from request

Sorry about not using plain text.

What I would like to end up with is nodes from the = xsp page that contain the nodes from the object i put in the = request.

<page>
        <para>
        =         <mynode>
        =         =         <mychildnode>
        =         =         =         ....
        =         =         </mychildnode>
        =         </mynode>
        </para>
</page>
        =        =20
What I am getting now is

<page>
        <para>
        =         <xsp-request:attribute = name=3D"xmlData">
        =         <!-- these = are not nodes but the value of the above node -->
        =         =         &lt;mynode&gt;
        =         =         =         &lt;mychildnode&gt;
        =         =         =         =         ....
        =         =         =         &lt;/mychildnode&gt;
        =         =         &lt;/mynode&gt;
        =         </xsp-request:attribute>
        </para>
</page>



-----Original Message-----
From: Vadim Gritsenko [mailto:vadim.gritsenko@veriz= on.net]
Sent: Wednesday, June 05, 2002 11:10 AM
To: cocoon-users@xml.apache.org
Subject: RE: Getting XML from request


> I need that object back as xml in an xsp page, = when I try this
> xsp:request:get-attribute = name=3D"xmlData" as=3D"xml"

Correct syntax is:
<xsp-request:get-attribute = name=3D"xmlData" as=3D"xml"/>

Result will be (IIRC):
<xsp-request:attribute = name=3D"xmlData">value of
attribute</xsp-request:attribute>


For:
<xsp-request:get-attribute = name=3D"xmlData" as=3D"string"/>

Result will be:
value of attribute


For:
Object o =3D <xsp-request:get-attribute = name=3D"xmlData" as=3D"object"/>;

Result will be assigned to object 'o'.


> The question is then how do I get the data into = the xsp as
> real xml nodes that I can use in a = transformation step with xsl?

What do you mean?

PS PLEASE SEND PLAIN TEXT EMAILS

Vadim


-----Original Message-----
From: Mike Ash [mailto:mash@euronetworldwide.c= om]
Sent: Wednesday, June 05, 2002 11:25 AM
To: 'cocoon-users@xml.apache.org'
Subject: Getting XML from request

I am storing xml data in the request object by using =
request.setAttribute("xmlData", = someObject);
I need that object back as xml in an xsp page, when = I try this
xsp:request:get-attribute name=3D"xmlData" = as=3D"xml"
it returns the "xml" as a node value = instead of individual nodes.
The question is then how do I get the data into the = xsp as real xml
nodes that I can use in a transformation step with = xsl?


---------------------------------------------------------------= ------
Please check that your question has not already been = answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: = <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: = <cocoon-users-help@xml.apache.org>

------_=_NextPart_001_01C20CAD.86114730--