Thanks for your reply.

What happens is that I want to access another object from within XSLT by
means of Xalan extensions. That object should have access to the
request/session objects.
I think one way would be to subclass TraxTransformer so that it sets XSLT
parameters at setup time in the transformer. TraxTransformer apparently has
access to the ObjectModelHelper, from which I can extract the
request/session and then pass it to the transformer, and the stylesheet
passes them to the target object by means of Xalan extension functions.

If you have any other ideas, I would appreciate.

Thanks,

Julio

----- Original Message -----
From: "Marco Rolappe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 8:10 PM
Subject: AW: Non-string sitemap custom parameters


> hi,
>
> as you may know, actions get parameters via avalon Parameters. if you look
> at the API you see that the parameters in the end can only contain
strings.
> so you have no direct way to pass objects of other type.
>
> but you could pass your objects e.g. via request/session attributes. have
a
> look at the respective docs/API.
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im
Auftrag
> von jcplerm
> Gesendet: Dienstag, 21. Januar 2003 02:35
> An: [EMAIL PROTECTED]
> Betreff: Non-string sitemap custom parameters
>
>
> Hello,
>
> I need to pass an object of arbitrary type from one action down to another
> along a sitemap pipeline, but unfortunately it seems that they are all
cast
> to String.
>
> This is an example:
>
>    <map:match pattern="myHello2.html">
>        <map:act type="ObjectRetriever">
>          <map:act type="CheckParamType">
>               <map:parameter name="objParam" value="{objParam}"/>
>                   <map:generate src="jlerm/test1.xml"/>
>                   <map:transform src="jlerm/test1.xsl">
>                         <map:parameter name="zzz" value="20"/>
>                         <map:parameter name="objParam"
value="{objParam}"/>
>                   </map:transform>
>                   <map:serialize type="html"/>
>          </map:act>
>       </map:act>
>    </map:match>
>
>
> "ObjectRetriever" puts an object into its return hashmap, with key
> "objParam". It is passed to "CheckParamType" with the same name.
> Unfortunately, tracing code in "CheckParamType"  logs the fact that
objParam
> is of type java.lang.String, when it should be something else (like a
> Vector, for instance).
>
> Any ideas how I could do that?
>
> Thanks,
>
> Julio Lerm
> Chicago, IL
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to