cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <>
Subject regex transformer
Date Mon, 04 Aug 2003 15:53:02 GMT
Hi all,
I would need some sort of search and replace functionality for my XML
templates, resorting to XSLT for this seems beyond my reach.
Basically if a template contains
<url value= <>
<title value="myparam"/>
Then I would like to replace all occurrences of myparam with a value of my
own. How would this fit into cocoon? Should I be looking at creating my own
transformer eg:
<map:transform type="regex">
<map:parameter regex="s/myparam/myvalue/g">
<map:parameter op="replace" what="myparam" with="myvalue"/>
Does this seem all too crazy? Is there a better way of doing this? 

View raw message