Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java @ 389:416ff31f6273
Removed local-name() method from xsl stylesheet and adjusted xpathes while reading xml documents.
gnv/trunk@511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 06 Jan 2010 09:13:45 +0000 |
parents | 6d24445806b8 |
children | 14eecfde4607 |
comparison
equal
deleted
inserted
replaced
388:6e16dc005704 | 389:416ff31f6273 |
---|---|
104 } | 104 } |
105 | 105 |
106 Node currentUI = artifactDescription.getCurrentUI(); | 106 Node currentUI = artifactDescription.getCurrentUI(); |
107 if (currentUI != null){ | 107 if (currentUI != null){ |
108 XSLTransformer transformer = new XSLTransformer(); | 108 XSLTransformer transformer = new XSLTransformer(); |
109 Node dynamicUINode = new XMLUtils().getNodeXPath(currentUI,"dynamic"); | 109 Node dynamicUINode = new XMLUtils().getNodeXPath(currentUI,"art:dynamic"); |
110 if (dynamicUINode != null){ | 110 if (dynamicUINode != null){ |
111 String ui = transformer | 111 String ui = transformer |
112 .transform( | 112 .transform( |
113 dynamicUINode, | 113 dynamicUINode, |
114 "UTF-8", | 114 "UTF-8", |
116 .getRealPath("WEB-INF/config/templates/describe-ui.xsl")); | 116 .getRealPath("WEB-INF/config/templates/describe-ui.xsl")); |
117 | 117 |
118 request.setAttribute("ui", ui); | 118 request.setAttribute("ui", ui); |
119 } | 119 } |
120 | 120 |
121 Node staticUINode = new XMLUtils().getNodeXPath(currentUI, "static"); | 121 Node staticUINode = new XMLUtils().getNodeXPath(currentUI, "art:static"); |
122 if (staticUINode != null){ | 122 if (staticUINode != null){ |
123 String staticUI = transformer | 123 String staticUI = transformer |
124 .transform( | 124 .transform( |
125 staticUINode, | 125 staticUINode, |
126 "UTF-8", | 126 "UTF-8", |
159 } | 159 } |
160 | 160 |
161 Node currentUI = artifactDescription.getCurrentUI(); | 161 Node currentUI = artifactDescription.getCurrentUI(); |
162 if (currentUI != null){ | 162 if (currentUI != null){ |
163 XSLTransformer transformer = new XSLTransformer(); | 163 XSLTransformer transformer = new XSLTransformer(); |
164 Node dynamicUINode = new XMLUtils().getNodeXPath(currentUI,"dynamic"); | 164 Node dynamicUINode = new XMLUtils().getNodeXPath(currentUI,"art:dynamic"); |
165 if (dynamicUINode != null){ | 165 if (dynamicUINode != null){ |
166 String ui = transformer | 166 String ui = transformer |
167 .transform( | 167 .transform( |
168 dynamicUINode, | 168 dynamicUINode, |
169 "UTF-8", | 169 "UTF-8", |
171 .getRealPath("WEB-INF/config/templates/describe-ui.xsl")); | 171 .getRealPath("WEB-INF/config/templates/describe-ui.xsl")); |
172 | 172 |
173 request.setAttribute("ui", ui); | 173 request.setAttribute("ui", ui); |
174 } | 174 } |
175 | 175 |
176 Node staticUINode = new XMLUtils().getNodeXPath(currentUI, "static"); | 176 Node staticUINode = new XMLUtils().getNodeXPath(currentUI, "art:static"); |
177 if (staticUINode != null){ | 177 if (staticUINode != null){ |
178 String staticUI = transformer | 178 String staticUI = transformer |
179 .transform( | 179 .transform( |
180 staticUINode, | 180 staticUINode, |
181 "UTF-8", | 181 "UTF-8", |