Revision 62363
Added by Claudio Atzori over 1 year ago
SimpleTransformationEngine.java | ||
---|---|---|
214 | 214 |
final String nsPrefix = xpath.evaluate("//*[local-name()='datasourceprefix']", root); |
215 | 215 |
|
216 | 216 |
final Datasource<?, ?, ?> ds; |
217 |
if (StringUtils.isNotBlank(dsId)) { |
|
217 |
if (StringUtils.isNotBlank(nsPrefix)) { |
|
218 |
ds = dsManager.getDsByNsPrefix(nsPrefix); |
|
219 |
} else if (StringUtils.isNotBlank(dsId)) { |
|
218 | 220 |
ds = dsManager.getDs(dsId); |
219 |
} else if (StringUtils.isNotBlank(nsPrefix)) { |
|
220 |
ds = dsManager.getDsByNsPrefix(nsPrefix); |
|
221 | 221 |
} else { |
222 | 222 |
ds = null; |
223 | 223 |
} |
Also available in: Unified diff
prefer using the nsPrefix to access the datasource information rather than the dsId