comparison flys-client/src/main/java/de/intevation/flys/client/server/ChartInfoServiceImpl.java @ 547:95a7f9cb3d58

#131 Repaired a broken XPath expression for the chart attributes. flys-client/trunk@2056 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 06 Jun 2011 11:31:21 +0000
parents fe2860653f8d
children e74bf6bfeeb6
comparison
equal deleted inserted replaced
546:feaf6a8881ee 547:95a7f9cb3d58
95 ElementCreator ec = new ElementCreator( 95 ElementCreator ec = new ElementCreator(
96 doc, 96 doc,
97 ArtifactNamespaceContext.NAMESPACE_URI, 97 ArtifactNamespaceContext.NAMESPACE_URI,
98 ArtifactNamespaceContext.NAMESPACE_PREFIX); 98 ArtifactNamespaceContext.NAMESPACE_PREFIX);
99 99
100 Element attr = ec.create("attributes");
100 Element size = ec.create("size"); 101 Element size = ec.create("size");
101 102
102 ec.addAttr(size, "width", String.valueOf(width), true); 103 ec.addAttr(size, "width", String.valueOf(width), true);
103 ec.addAttr(size, "height", String.valueOf(height), true); 104 ec.addAttr(size, "height", String.valueOf(height), true);
104 105
105 doc.appendChild(size); 106 attr.appendChild(size);
107 doc.appendChild(attr);
106 108
107 return doc; 109 return doc;
108 } 110 }
109 111
110 112

http://dive4elements.wald.intevation.org