cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: How to hide XML tags
Date Tue, 17 Oct 2000 11:56:51 GMT
cesare.raoss@delta.it wrote:
>I want to pass parameters from the URL (ie:
>http://localhost:8080/cocoon/servlets/db1.xml?table=CATEGORIES&initpos=3&steps=3)
>to the db1.xsl that process the db1.xml file.
>To do this I declare in the <page> section of db1.xml the following tags
>
><PARAMETRI>
>       <steps>steps=<xsp:expr>request.getParameter
>("steps")</xsp:expr></steps>
>       <table>table=<xsp:expr>request.getParameter
>("table")</xsp:expr></table>
></PARAMETRI>
><POSIZIONE>
>       <initpos><xsp:expr>request.getParameter
>("initpos")</xsp:expr></initpos>
>       <steps><xsp:expr>request.getParameter("steps")</xsp:expr></steps>
></POSIZIONE>
>
>Than I use them during the xsl processing.

You don't have to do it this way. Instead you could just delete all that and 
declare the parameters in the XSL like so:

<xsl:param name="table"/>
<xsl:param name="initpos"/>



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message