cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@yahoo.com>
Subject RE: SQL-Transformer, two more parameters
Date Sat, 30 Jun 2001 02:47:58 GMT
Mariano,

Your patch is applied, thanks.
There are two ways to configure transformer:
 - provide default parameters when defining transformer,
 - provide parameters when using transformer.

Your goal is also can be achieved using second way.

Thanks,
Vadim

> -----Original Message-----
> From: Mariano Kamp [mailto:mkamp@codamax.com]
> Sent: Friday, June 29, 2001 9:48
> To: cocoon-dev@xml.apache.org
> Subject: SQL-Transformer, two more parameters
> 
> 
> Hi there,
> 
>   I needed to pass in two more parameters to SQL Transformer. I changed the 
> code accordingly. 
> 
>   I attached the diff. If this is the right approach to pass in the 
> parameters, feel free to add it. If not, could you please tell me what would 
> have been the proper approach.
> 
> Mariano
> 
> 
> 
> 
> Index: src/org/apache/cocoon/transformation/SQLTransformer.java
> ===================================================================
> RCS file: 
> /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/transformation/SQLTr
> ansformer.java,v
> retrieving revision 1.10
> diff -c -r1.10 SQLTransformer.java
> *** src/org/apache/cocoon/transformation/SQLTransformer.java    2001/06/23 
> 04:49
> :52     1.10
> --- src/org/apache/cocoon/transformation/SQLTransformer.java    2001/06/29 
> 13:39
> :18
> ***************
> *** 200,205 ****
> --- 200,218 ----
>               }
>           }
>           showNrOfRows = 
> parameters.getParameter(SQLTransformer.MAGIC_NR_OF_ROWS
> ,null);
> + 
> +       // Check for row-element and doc-element
> +       parameter = parameters.getParameter(SQLTransformer.MAGIC_DOC_ELEMENT, 
> nu
> ll);
> +       if (parameter != null) {
> +           getLogger().debug("DOC-ELEMENT: "+parameter);
> +           default_properties.setProperty(SQLTransformer.MAGIC_DOC_ELEMENT, 
> par
> ameter);
> +       }
> + 
> +       parameter = parameters.getParameter(SQLTransformer.MAGIC_ROW_ELEMENT, 
> nu
> ll);
> +       if (parameter != null) {
> +           getLogger().debug("ROW-ELEMENT: "+parameter);
> +           default_properties.setProperty(SQLTransformer.MAGIC_ROW_ELEMENT, 
> par
> ameter);
> +       }
>       }
>       
>       /** END SitemapComponent methods **/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Mime
View raw message