cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariano Kamp <mk...@codamax.com>
Subject SQL-Transformer, two more parameters
Date Fri, 29 Jun 2001 13:47:50 GMT
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


Mime
View raw message