Revision 4324
Added by Aaron Marcuse-Kubitza almost 12 years ago
test.xml.ref | ||
---|---|---|
1 | 1 |
Put template: |
2 | 2 |
<VegBIEN> |
3 | 3 |
<location id="-1"> |
4 |
<sourceaccessioncode>$PlotID</sourceaccessioncode> |
|
4 | 5 |
<area>$plot_area_ha</area> |
5 | 6 |
<authorlocationcode>$SiteCode</authorlocationcode> |
6 | 7 |
<elevation> |
... | ... | |
277 | 278 |
<locationnarrative>$Locality_Description</locationnarrative> |
278 | 279 |
<slopeaspect><_compass><value>$slope_aspect</value></_compass></slopeaspect> |
279 | 280 |
<slopegradient>$slope_gradient</slopegradient> |
280 |
<sourceaccessioncode>$PlotID</sourceaccessioncode> |
|
281 | 281 |
</location> |
282 | 282 |
</VegBIEN> |
283 | 283 |
Inserted 23 new rows into database |
Also available in: Unified diff
mappings/VegCore-VegBIEN.csv: Moved "if subplot" _if statement around /location/parent_id and /location/sourceaccessioncode themselves, so that only one _if cond mapping for subplot is needed. Note that this is only possible because this _if statement uses _exists, allowing it to be fully evaluated by the XML template simplifying mechanism, which supports subtrees as arguments to _if.