cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: How do you include braces in an attribute?
Date Wed, 16 Jan 2002 03:19:00 GMT
> From: Berin Loritsch [mailto:bloritsch@apache.org]
> 
> I like the ability to do parameter substitution, but how do you pass a
> value that does not expand the attribute?
> 
> For instance, I have an action that performs redirection to a specific
> form.  I want to include the key in the URI, but do the expansion
myself.
> I have an action set like this:
> 
>    <map:action-set name="reports">
>      <map:act type="catgroup" src=""/>
>      <map:act type="report" action="Run Difference Report">
>        <map:parameter name="report"
value="store-0/section-{cdlid}/difference-
> report.pdf"/>
>      </map:act>
>      <map:act type="report" action="Run Compliance Report">
>        <map:parameter name="report"
value="section-{cdlid}/compliance.pdf"/>
>      </map:act>
>    </map:action-set>
> 
> The problem is that the "section-{cdlid}" portion of the URI is
expanded
> before the path is given to my action.  I want to perform the
substitution
> of {cdlid} myself in the action.  Do we have escape characters for the
> braces? 

IIRC, yes. Escaped string should look like "section-\{cdlid}" (check
XSLTFactoryLoader for details... I did not used this before)

Vadim

> Or do I have to choose a different marker to perform the
> substitution?



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message