Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/Builder.java @ 1859:755d9763928f
Improved loggin in error case for dc XPath expression resolution.
flys-artifacts/trunk@3208 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 10:12:25 +0000 |
parents | e3eb1ea885a7 |
children | 9144e5a5027b |
comparison
equal
deleted
inserted
replaced
1858:94871b7ce9e9 | 1859:755d9763928f |
---|---|
136 log.debug("dc:context"); | 136 log.debug("dc:context"); |
137 | 137 |
138 NodeList subs = current.getChildNodes(); | 138 NodeList subs = current.getChildNodes(); |
139 int S = subs.getLength(); | 139 int S = subs.getLength(); |
140 | 140 |
141 // check only direct children | 141 // Check only direct children. |
142 Node stmntNode = null; | 142 Node stmntNode = null; |
143 for (int i = 0; i < S; ++i) { | 143 for (int i = 0; i < S; ++i) { |
144 Node node = subs.item(i); | 144 Node node = subs.item(i); |
145 String ns; | 145 String ns; |
146 if (node.getNodeType() == Node.ELEMENT_NODE | 146 if (node.getNodeType() == Node.ELEMENT_NODE |
404 return result instanceof Boolean | 404 return result instanceof Boolean |
405 ? (Boolean)result | 405 ? (Boolean)result |
406 : null; | 406 : null; |
407 } | 407 } |
408 catch (XPathExpressionException xfce) { | 408 catch (XPathExpressionException xfce) { |
409 log.error(xfce); | 409 log.error("expression: " + expr, xfce); |
410 } | 410 } |
411 return null; | 411 return null; |
412 } | 412 } |
413 | 413 |
414 protected void convert(Node parent, Element current) { | 414 protected void convert(Node parent, Element current) { |