You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Irv Salisbury <ir...@gmail.com> on 2005/03/11 13:02:56 UTC
Re: How to pass an attaribute value from a resulting transformedxml
One other thing to look at is the XModuleSource. It is often simpler
to use than the Write and Read DOM Session Transformers. Both should
work fine. Here is a page that talks about it in comparison to the
Read and Write transformers:
http://wiki.apache.org/cocoon/XModuleSource
On Fri, 11 Mar 2005 12:34:20 +0530, suryanarayana.murthy@tcs.com
<su...@tcs.com> wrote:
>
> Hi Jorg,
>
> Thank you much for your suggestion. I will try with
> WriteDomSessionTransformer.
>
> Thanks & Regards,
> Murthy
>
> Jorg Heymans <jh...@domek.be>
> Sent by: news <ne...@sea.gmane.org>
> 03/10/2005 19:29 CETPlease respond tousers@cocoon.apache.org
>
> To users@cocoon.apache.org
> Subject Re: How to pass an attaribute value from a resulting
> transformedxml
>
> Thanks for making your situation a bit more clear.
> I had a look at the docs to find a component that might suit your needs.
> Have you tried using the WriteDomSessionTransformer [1]? I have never
> used it myself, but from the docs it seems like it could do the trick
> for you :
> <map:transform type="writeDOMsession">
> <map:parameter name="dom-name" value="DBresult"/>
> <map:parameter name="dom-root-element" value="rowset"/>
> </map:transform>
>
> Apparently, this transformer stores an object called "DBresult" in the
> session, the object contains the DOM representation of your pipeline
> encapsulated inside a root "rowset" element.
>
> Inside the action that sets the response header you could fetch this
> object, do some DOM searching until you find the title and voila!
>
> HTH
> Jorg
>
> [1]http://cocoon.apache.org/2.1/userdocs/transformers/writedomsession-transformer.html
>
> Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org