changeset 6455:201d90f56d98

Fixed container context variables: to upper case. - Adjusted log level - Ignore 'properties' elements.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 26 Jun 2013 22:23:57 +0200
parents e860fa106f56
children 0624d3a0a63e
files artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java	Wed Jun 26 22:25:19 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/Builder.java	Wed Jun 26 22:23:57 2013 +0200
@@ -278,7 +278,7 @@
 
             String [] columnNames = new String[properties.length];
             for (int i = 0; i < columnNames.length; ++i) {
-                columnNames[i] = properties[i][1];
+                columnNames[i] = properties[i][1].toUpperCase();
             }
 
             ResultData rd = new ResultData(columnNames);
@@ -825,12 +825,12 @@
         throws SQLException
         {
             log.debug("dc:message");
-            if (log.isInfoEnabled()) {
+            if (log.isDebugEnabled()) {
                 String value = current.getTextContent();
                 if (value.indexOf('{') >= 0) { // Performance tweak
                     value = expandXPathValue(value);
                 }
-                log.info("MESSAGE: " + value);
+                log.debug("MESSAGE: " + value);
             }
         }
 
@@ -1124,7 +1124,8 @@
                     }
                     else if ("macro".equals(localName)
                          ||  "comment".equals(localName)
-                         ||  "statement".equals(localName)) {
+                         ||  "statement".equals(localName)
+                         ||  "properties".equals(localName)) {
                         // Simply ignore them.
                     }
                     else if ("element".equals(localName)) {

http://dive4elements.wald.intevation.org