Mercurial > dive4elements > river
changeset 4916:2cec81e697e8 dc-km-filter
[branch dc-km-filter] Builder: Let dc:variables always be global.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 30 Jan 2013 15:52:50 +0100 |
parents | bbedd9af069e |
children | c499201a30a3 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java Wed Jan 30 15:52:05 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java Wed Jan 30 15:52:50 2013 +0100 @@ -534,9 +534,11 @@ log.error("dc:variable 'name' or 'expr' empty."); } else { - frames.put( + Object o = evaluateXPath(expr, typeToQName(type)); + frames.putGlobal( varName.toUpperCase(), - evaluateXPath(expr, typeToQName(type))); + o + ); } }