cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dynnamitt <>
Subject (2.1.11) output-attribute / XSPAction -- howto "get at" output fragment in sitemap?
Date Mon, 20 Apr 2009 15:16:08 GMT

Please help... almost there!!

Reading the API for the
ServerPagesAction ,
I find some text claiming that; 
if I add a parameter named "output-attribute" ,
"the XSP-generated document" will be stored in a "request attribute"

OK, so my 1st test goes like this:
<map:act src="xsp/simple_http_request.xsp"  type="serverpages" >
  <map:parameter name="output-attribute" value="xsp-action-result" />        
    <map:read src="{request-attr:xsp-action-result}" mime-type="image/gif"/>       
(No such file or directory)

..witch is GOOD! I seem to have an output fragment (XMLByteStreamFragment)
avaliable "somehow"

But how can I "get" a specific xml element inside this object  ??

( I tried this BUT the result was only a blank string:
<map:read src="{request-attr:xsp-action-result/root/data[1]/picture}"
mime-type="..."/>  )

Q: How am I able to "get at" this XMLByteStreamFragment in this phase ??


View this message in context:
Sent from the Cocoon - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message