cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christoph <e0528...@student.tuwien.ac.at>
Subject defining parameters from xml
Date Fri, 05 Oct 2007 08:03:58 GMT
Hi,
how can I define a parameter from an xml.

lets say I query  a database which delivers me a firstname an a lastname, so I 
would get.
<xml>
  <firstname>alex</firstname>
 <lastname>foo</lastname>
</xml>

How do I set this names as parameters (global or locally in a sitemap) so I 
could use it like

<map:match pattern="insertSQL">
   <map:generate type="jx" src="jx/insertArtistTrackSQL.jx">
     <map:parameter name="firstname" value="cocoon.parameters.firstname"/>
     <map:parameter name="lastname" value="cocoon.parameters.lastname"/>
   </map:generate>
 <map:serialize type="xml" />
 </map:match>

thanx


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


Mime
View raw message