Project

General

Profile

« Previous | Next » 

Revision 11107

bugfix: mappings/VegCore-VegBIEN.csv: nest all taxonoccurrences inside a stratum event, so that the parent locationevent is always fully populated before child locationevents point to it. (previously, a stub parent event was created when the child event was imported first, which blocked the fully-populated parent event from being inserted later on.) this uses auto-folding (for VegBank/CVS) and auto-forwarding (for other datasources) to prune empty stratum events for taxonoccurrences that don't have strata. (see wiki.vegpath.org/Auto-folding, wiki.vegpath.org/Auto-forwarding for more info about these normalization techniques.) note that the inserted row counts stay exactly the same for all datasources except VegBank (which was being fixed), indicating that this signficant change to the mappings did not change the semantics of the import of taxonoccurrences.

View differences:

inputs/NY/Ecatalog_all/test.xml.ref
31 31
                            </_locationnarrative_is_cultivated>
32 32
                        </iscultivated>
33 33
                        <locationevent>
34
                            <taxonoccurrence>
35
                                <aggregateoccurrence>
36
                                    <collectiondate>
37
                                        <_date>
38
                                            <day>
39
                                                <_nullIf>
40
                                                    <null>0</null>
41
                                                    <type>float</type>
42
                                                    <value>$dayCollected</value>
43
                                                </_nullIf>
44
                                            </day>
45
                                            <month>
46
                                                <_nullIf>
47
                                                    <null>0</null>
48
                                                    <type>float</type>
49
                                                    <value>$monthCollected</value>
50
                                                </_nullIf>
51
                                            </month>
52
                                            <year>
53
                                                <_nullIf>
54
                                                    <null>0</null>
55
                                                    <type>float</type>
56
                                                    <value>$yearCollected</value>
57
                                                </_nullIf>
58
                                            </year>
59
                                        </_date>
60
                                    </collectiondate>
61
                                    <count>$individualCount</count>
62
                                    <notes>$occurrenceRemarks</notes>
63
                                    <plantobservation>
64
                                        <authorplantcode>$collectorNumber</authorplantcode>
65
                                        <definedvalue fkey="tablerecord_id">
66
                                            <userdefined_id>
67
                                                <userdefined>
68
                                                    <tablename>plantobservation</tablename>
69
                                                    <userdefinedname>sex</userdefinedname>
70
                                                </userdefined>
71
                                            </userdefined_id>
72
                                            <definedvalue>$sex</definedvalue>
73
                                        </definedvalue>
74
                                        <specimenreplicate>
75
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
76
                                            <collectioncode_dwc>$collection</collectioncode_dwc>
77
                                            <collectionnumber>$collectorNumber</collectionnumber>
78
                                            <institution_id>
79
                                                <sourcelist>
80
                                                    <name>$specimenHolderInstitutions</name>
81
                                                    <sourcename>
82
                                                        <name>
83
                                                            <_split>
84
                                                                <separator>[,;] *</separator>
85
                                                                <value>$specimenHolderInstitutions</value>
86
                                                            </_split>
87
                                                        </name>
88
                                                    </sourcename>
89
                                                </sourcelist>
90
                                            </institution_id>
91
                                        </specimenreplicate>
92
                                    </plantobservation>
93
                                </aggregateoccurrence>
94
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
95
                                <taxondetermination>
96
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
97
                                    <taxonverbatim_id>
98
                                        <taxonverbatim>
99
                                            <taxonlabel_id>
100
                                                <taxonlabel>
101
                                                    <parent_id>
102
                                                        <taxonlabel>
103
                                                            <parent_id>
104
                                                                <taxonlabel>
105
                                                                    <rank>cultivar</rank>
106
                                                                    <parent_id>
107
                                                                        <taxonlabel>
108
                                                                            <rank>forma</rank>
109
                                                                            <parent_id>
110
                                                                                <taxonlabel>
111
                                                                                    <rank>variety</rank>
112
                                                                                    <parent_id>
113
                                                                                        <taxonlabel>
114
                                                                                            <rank>subspecies</rank>
115
                                                                                            <taxonepithet>$subspecies</taxonepithet>
116
                                                                                            <parent_id>
117
                                                                                                <taxonlabel>
118
                                                                                                    <rank>species</rank>
119
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
120
                                                                                                    <parent_id>
121
                                                                                                        <taxonlabel>
122
                                                                                                            <rank>genus</rank>
123
                                                                                                            <taxonepithet>$genus</taxonepithet>
124
                                                                                                            <parent_id>
125
                                                                                                                <taxonlabel>
126
                                                                                                                    <rank>family</rank>
127
                                                                                                                    <taxonepithet>$family</taxonepithet>
128
                                                                                                                    <parent_id>
129
                                                                                                                        <taxonlabel>
130
                                                                                                                            <rank>order</rank>
131
                                                                                                                            <taxonepithet>$order</taxonepithet>
132
                                                                                                                            <parent_id>
133
                                                                                                                                <taxonlabel>
134
                                                                                                                                    <rank>class</rank>
135
                                                                                                                                    <taxonepithet>$class</taxonepithet>
136
                                                                                                                                    <parent_id>
137
                                                                                                                                        <taxonlabel>
138
                                                                                                                                            <rank>phylum</rank>
139
                                                                                                                                            <taxonepithet>$phylum</taxonepithet>
140
                                                                                                                                            <parent_id>
141
                                                                                                                                                <taxonlabel>
142
                                                                                                                                                    <rank>kingdom</rank>
143
                                                                                                                                                    <taxonepithet>$kingdom</taxonepithet>
144
                                                                                                                                                </taxonlabel>
145
                                                                                                                                            </parent_id>
146
                                                                                                                                        </taxonlabel>
147
                                                                                                                                    </parent_id>
148
                                                                                                                                </taxonlabel>
149
                                                                                                                            </parent_id>
150
                                                                                                                        </taxonlabel>
151
                                                                                                                    </parent_id>
152
                                                                                                                </taxonlabel>
153
                                                                                                            </parent_id>
154
                                                                                                        </taxonlabel>
155
                                                                                                    </parent_id>
156
                                                                                                </taxonlabel>
157
                                                                                            </parent_id>
158
                                                                                        </taxonlabel>
159
                                                                                    </parent_id>
160
                                                                                </taxonlabel>
161
                                                                            </parent_id>
162
                                                                        </taxonlabel>
163
                                                                    </parent_id>
164
                                                                </taxonlabel>
165
                                                            </parent_id>
166
                                                        </taxonlabel>
167
                                                    </parent_id>
168
                                                    <taxonomicname>
169
                                                        <_merge_prefix>
170
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
171
                                                            <value>
172
                                                                <_join_words>
173
                                                                    <1>
174
                                                                        <_alt>
175
                                                                            <1>$taxonName</1>
176
                                                                            <2>
177
                                                                                <_join_words>
178
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
179
                                                                                    <3>$specificEpithet</3>
180
                                                                                    <4>$subspecies</4>
181
                                                                                </_join_words>
182
                                                                            </2>
183
                                                                        </_alt>
184
                                                                    </1>
185
                                                                    <2>$scientificNameAuthorship</2>
186
                                                                </_join_words>
187
                                                            </value>
188
                                                        </_merge_prefix>
189
                                                    </taxonomicname>
190
                                                </taxonlabel>
191
                                            </taxonlabel_id>
192
                                            <author>$scientificNameAuthorship</author>
193
                                            <family>$family</family>
194
                                            <genus>$genus</genus>
195
                                            <specific_epithet>$specificEpithet</specific_epithet>
196
                                            <taxonname>$taxonName</taxonname>
197
                                        </taxonverbatim>
198
                                    </taxonverbatim_id>
199
                                    <determinationdate>
200
                                        <_date>
201
                                            <day>
202
                                                <_nullIf>
203
                                                    <null>0</null>
204
                                                    <type>float</type>
205
                                                    <value>$dayIdentified</value>
206
                                                </_nullIf>
207
                                            </day>
208
                                            <month>
209
                                                <_nullIf>
210
                                                    <null>0</null>
211
                                                    <type>float</type>
212
                                                    <value>$monthIdentified</value>
213
                                                </_nullIf>
214
                                            </month>
215
                                            <year>
216
                                                <_nullIf>
217
                                                    <null>0</null>
218
                                                    <type>float</type>
219
                                                    <value>$yearIdentified</value>
220
                                                </_nullIf>
221
                                            </year>
222
                                        </_date>
223
                                    </determinationdate>
224
                                </taxondetermination>
225
                            </taxonoccurrence>
34
                            <locationevent fkey="parent_id">
35
                                <taxonoccurrence>
36
                                    <aggregateoccurrence>
37
                                        <collectiondate>
38
                                            <_date>
39
                                                <day>
40
                                                    <_nullIf>
41
                                                        <null>0</null>
42
                                                        <type>float</type>
43
                                                        <value>$dayCollected</value>
44
                                                    </_nullIf>
45
                                                </day>
46
                                                <month>
47
                                                    <_nullIf>
48
                                                        <null>0</null>
49
                                                        <type>float</type>
50
                                                        <value>$monthCollected</value>
51
                                                    </_nullIf>
52
                                                </month>
53
                                                <year>
54
                                                    <_nullIf>
55
                                                        <null>0</null>
56
                                                        <type>float</type>
57
                                                        <value>$yearCollected</value>
58
                                                    </_nullIf>
59
                                                </year>
60
                                            </_date>
61
                                        </collectiondate>
62
                                        <count>$individualCount</count>
63
                                        <notes>$occurrenceRemarks</notes>
64
                                        <plantobservation>
65
                                            <authorplantcode>$collectorNumber</authorplantcode>
66
                                            <definedvalue fkey="tablerecord_id">
67
                                                <userdefined_id>
68
                                                    <userdefined>
69
                                                        <tablename>plantobservation</tablename>
70
                                                        <userdefinedname>sex</userdefinedname>
71
                                                    </userdefined>
72
                                                </userdefined_id>
73
                                                <definedvalue>$sex</definedvalue>
74
                                            </definedvalue>
75
                                            <specimenreplicate>
76
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
77
                                                <collectioncode_dwc>$collection</collectioncode_dwc>
78
                                                <collectionnumber>$collectorNumber</collectionnumber>
79
                                                <institution_id>
80
                                                    <sourcelist>
81
                                                        <name>$specimenHolderInstitutions</name>
82
                                                        <sourcename>
83
                                                            <name>
84
                                                                <_split>
85
                                                                    <separator>[,;] *</separator>
86
                                                                    <value>$specimenHolderInstitutions</value>
87
                                                                </_split>
88
                                                            </name>
89
                                                        </sourcename>
90
                                                    </sourcelist>
91
                                                </institution_id>
92
                                            </specimenreplicate>
93
                                        </plantobservation>
94
                                    </aggregateoccurrence>
95
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
96
                                    <taxondetermination>
97
                                        <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
98
                                        <taxonverbatim_id>
99
                                            <taxonverbatim>
100
                                                <taxonlabel_id>
101
                                                    <taxonlabel>
102
                                                        <parent_id>
103
                                                            <taxonlabel>
104
                                                                <parent_id>
105
                                                                    <taxonlabel>
106
                                                                        <rank>cultivar</rank>
107
                                                                        <parent_id>
108
                                                                            <taxonlabel>
109
                                                                                <rank>forma</rank>
110
                                                                                <parent_id>
111
                                                                                    <taxonlabel>
112
                                                                                        <rank>variety</rank>
113
                                                                                        <parent_id>
114
                                                                                            <taxonlabel>
115
                                                                                                <rank>subspecies</rank>
116
                                                                                                <taxonepithet>$subspecies</taxonepithet>
117
                                                                                                <parent_id>
118
                                                                                                    <taxonlabel>
119
                                                                                                        <rank>species</rank>
120
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
121
                                                                                                        <parent_id>
122
                                                                                                            <taxonlabel>
123
                                                                                                                <rank>genus</rank>
124
                                                                                                                <taxonepithet>$genus</taxonepithet>
125
                                                                                                                <parent_id>
126
                                                                                                                    <taxonlabel>
127
                                                                                                                        <rank>family</rank>
128
                                                                                                                        <taxonepithet>$family</taxonepithet>
129
                                                                                                                        <parent_id>
130
                                                                                                                            <taxonlabel>
131
                                                                                                                                <rank>order</rank>
132
                                                                                                                                <taxonepithet>$order</taxonepithet>
133
                                                                                                                                <parent_id>
134
                                                                                                                                    <taxonlabel>
135
                                                                                                                                        <rank>class</rank>
136
                                                                                                                                        <taxonepithet>$class</taxonepithet>
137
                                                                                                                                        <parent_id>
138
                                                                                                                                            <taxonlabel>
139
                                                                                                                                                <rank>phylum</rank>
140
                                                                                                                                                <taxonepithet>$phylum</taxonepithet>
141
                                                                                                                                                <parent_id>
142
                                                                                                                                                    <taxonlabel>
143
                                                                                                                                                        <rank>kingdom</rank>
144
                                                                                                                                                        <taxonepithet>$kingdom</taxonepithet>
145
                                                                                                                                                    </taxonlabel>
146
                                                                                                                                                </parent_id>
147
                                                                                                                                            </taxonlabel>
148
                                                                                                                                        </parent_id>
149
                                                                                                                                    </taxonlabel>
150
                                                                                                                                </parent_id>
151
                                                                                                                            </taxonlabel>
152
                                                                                                                        </parent_id>
153
                                                                                                                    </taxonlabel>
154
                                                                                                                </parent_id>
155
                                                                                                            </taxonlabel>
156
                                                                                                        </parent_id>
157
                                                                                                    </taxonlabel>
158
                                                                                                </parent_id>
159
                                                                                            </taxonlabel>
160
                                                                                        </parent_id>
161
                                                                                    </taxonlabel>
162
                                                                                </parent_id>
163
                                                                            </taxonlabel>
164
                                                                        </parent_id>
165
                                                                    </taxonlabel>
166
                                                                </parent_id>
167
                                                            </taxonlabel>
168
                                                        </parent_id>
169
                                                        <taxonomicname>
170
                                                            <_merge_prefix>
171
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
172
                                                                <value>
173
                                                                    <_join_words>
174
                                                                        <1>
175
                                                                            <_alt>
176
                                                                                <1>$taxonName</1>
177
                                                                                <2>
178
                                                                                    <_join_words>
179
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
180
                                                                                        <3>$specificEpithet</3>
181
                                                                                        <4>$subspecies</4>
182
                                                                                    </_join_words>
183
                                                                                </2>
184
                                                                            </_alt>
185
                                                                        </1>
186
                                                                        <2>$scientificNameAuthorship</2>
187
                                                                    </_join_words>
188
                                                                </value>
189
                                                            </_merge_prefix>
190
                                                        </taxonomicname>
191
                                                    </taxonlabel>
192
                                                </taxonlabel_id>
193
                                                <author>$scientificNameAuthorship</author>
194
                                                <family>$family</family>
195
                                                <genus>$genus</genus>
196
                                                <specific_epithet>$specificEpithet</specific_epithet>
197
                                                <taxonname>$taxonName</taxonname>
198
                                            </taxonverbatim>
199
                                        </taxonverbatim_id>
200
                                        <determinationdate>
201
                                            <_date>
202
                                                <day>
203
                                                    <_nullIf>
204
                                                        <null>0</null>
205
                                                        <type>float</type>
206
                                                        <value>$dayIdentified</value>
207
                                                    </_nullIf>
208
                                                </day>
209
                                                <month>
210
                                                    <_nullIf>
211
                                                        <null>0</null>
212
                                                        <type>float</type>
213
                                                        <value>$monthIdentified</value>
214
                                                    </_nullIf>
215
                                                </month>
216
                                                <year>
217
                                                    <_nullIf>
218
                                                        <null>0</null>
219
                                                        <type>float</type>
220
                                                        <value>$yearIdentified</value>
221
                                                    </_nullIf>
222
                                                </year>
223
                                            </_date>
224
                                        </determinationdate>
225
                                    </taxondetermination>
226
                                </taxonoccurrence>
227
                            </locationevent>
226 228
                            <waterdepth_m>
227 229
                                <_avg>
228 230
                                    <1>$minimumDepthInMeters</1>
inputs/CVS/stemCount_/VegBIEN.csv
1 1
CVS,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2 2
taxonObservation_ID,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
3
stemCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/count,
4
cover,/location/locationevent/taxonoccurrence/aggregateoccurrence/cover_fraction/_percent_to_fraction/value,
5
stemDiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,
6
stemHeight,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,
7
STEMCOUNT_ID,/location/locationevent/taxonoccurrence/aggregateoccurrence/sourceaccessioncode,
8
taxonObservation_ID,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
9
taxonObservation_ID,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/1,
10
STEMCOUNT_ID,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists",
11
taxonObservation_ID,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/cond/_exists",
3
stemCount,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/count,
4
cover,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/cover_fraction/_percent_to_fraction/value,
5
stemDiameter,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,
6
stemHeight,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,
7
STEMCOUNT_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/sourceaccessioncode,
8
taxonObservation_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
9
taxonObservation_ID,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/1,
10
STEMCOUNT_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/cond/_exists",
11
taxonObservation_ID,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/_if[@name=""if has taxondetermination""]/cond/_exists",
12 12
basalArea,,** No join mapping for *basalarea ** 
13 13
biomass,,** No join mapping for *biomass ** 
14 14
cust_cvs_StemFrequency,,** No join mapping for *cust_cvs_StemFrequency ** 
inputs/CVS/observation_/test.xml.ref
13 13
                            <project_id><project><sourceaccessioncode>$PROJECT_ID</sourceaccessioncode></project></project_id>
14 14
                            <authoreventcode>$authorObsCode</authoreventcode>
15 15
                            <sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode>
16
                            <locationevent fkey="parent_id"><sourceaccessioncode>$OBSERVATION_ID</sourceaccessioncode></locationevent>
16 17
                            <obsenddate>$obsEndDate</obsenddate>
17 18
                            <obsstartdate>$obsStartDate</obsstartdate>
18 19
                            <soilsample>
inputs/HVAA/Specimen/test.xml.ref
50 50
                        </iscultivated>
51 51
                        <locationevent>
52 52
                            <method_id><method><name>$samplingProtocol</name></method></method_id>
53
                            <taxonoccurrence>
54
                                <aggregateoccurrence>
55
                                    <collectiondate>
56
                                        <_alt>
57
                                            <1>$dateCollected</1>
58
                                            <2>
59
                                                <_date>
60
                                                    <day>
61
                                                        <_nullIf>
62
                                                            <null>0</null>
63
                                                            <type>float</type>
64
                                                            <value>$dayCollected</value>
65
                                                        </_nullIf>
66
                                                    </day>
67
                                                    <month>
68
                                                        <_nullIf>
69
                                                            <null>0</null>
70
                                                            <type>float</type>
71
                                                            <value>$monthCollected</value>
72
                                                        </_nullIf>
73
                                                    </month>
74
                                                    <year>
75
                                                        <_nullIf>
76
                                                            <null>0</null>
77
                                                            <type>float</type>
78
                                                            <value>$yearCollected</value>
79
                                                        </_nullIf>
80
                                                    </year>
81
                                                </_date>
82
                                            </2>
83
                                        </_alt>
84
                                    </collectiondate>
85
                                    <count>$individualCount</count>
86
                                    <notes>$occurrenceRemarks</notes>
87
                                    <plantobservation>
88
                                        <authorplantcode>$collectorNumber</authorplantcode>
89
                                        <definedvalue fkey="tablerecord_id">
90
                                            <userdefined_id>
91
                                                <userdefined>
92
                                                    <tablename>plantobservation</tablename>
93
                                                    <userdefinedname>sex</userdefinedname>
94
                                                </userdefined>
95
                                            </userdefined_id>
96
                                            <definedvalue>$sex</definedvalue>
97
                                        </definedvalue>
98
                                        <reproductivecondition>$reproductiveCondition</reproductivecondition>
99
                                        <specimenreplicate>
100
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
101
                                            <collectioncode_dwc>$collection</collectioncode_dwc>
102
                                            <collectionnumber>$collectorNumber</collectionnumber>
103
                                            <institution_id>
104
                                                <sourcelist>
105
                                                    <name>$specimenHolderInstitutions</name>
106
                                                    <sourcename>
107
                                                        <name>
108
                                                            <_split>
109
                                                                <separator>[,;] *</separator>
110
                                                                <value>$specimenHolderInstitutions</value>
111
                                                            </_split>
112
                                                        </name>
113
                                                    </sourcename>
114
                                                </sourcelist>
115
                                            </institution_id>
116
                                            <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
117
                                        </specimenreplicate>
118
                                    </plantobservation>
119
                                </aggregateoccurrence>
120
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
121
                                <iscultivated>
122
                                    <_map>
123
                                        <cultivated>t</cultivated>
124
                                        <wild>f</wild>
125
                                        <*></*>
126
                                        <value>$establishmentMeans</value>
127
                                    </_map>
128
                                </iscultivated>
129
                                <isnative>
130
                                    <_map>
131
                                        <native>t</native>
132
                                        <exotic>f</exotic>
133
                                        <*></*>
134
                                        <value>$establishmentMeans</value>
135
                                    </_map>
136
                                </isnative>
137
                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
138
                                <taxondetermination>
139
                                    <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
140
                                    <taxonverbatim_id>
141
                                        <taxonverbatim>
142
                                            <taxonlabel_id>
143
                                                <taxonlabel>
144
                                                    <parent_id>
145
                                                        <taxonlabel>
146
                                                            <rank>$taxonRank</rank>
147
                                                            <parent_id>
148
                                                                <taxonlabel>
149
                                                                    <rank>cultivar</rank>
150
                                                                    <parent_id>
151
                                                                        <taxonlabel>
152
                                                                            <rank>forma</rank>
153
                                                                            <parent_id>
154
                                                                                <taxonlabel>
155
                                                                                    <rank>variety</rank>
156
                                                                                    <parent_id>
157
                                                                                        <taxonlabel>
158
                                                                                            <rank>subspecies</rank>
159
                                                                                            <parent_id>
160
                                                                                                <taxonlabel>
161
                                                                                                    <rank>species</rank>
162
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
163
                                                                                                    <parent_id>
164
                                                                                                        <taxonlabel>
165
                                                                                                            <rank>genus</rank>
166
                                                                                                            <taxonepithet>$genus</taxonepithet>
167
                                                                                                            <parent_id>
168
                                                                                                                <taxonlabel>
169
                                                                                                                    <rank>family</rank>
170
                                                                                                                    <taxonepithet>$family</taxonepithet>
171
                                                                                                                </taxonlabel>
172
                                                                                                            </parent_id>
173
                                                                                                        </taxonlabel>
174
                                                                                                    </parent_id>
175
                                                                                                </taxonlabel>
176
                                                                                            </parent_id>
177
                                                                                        </taxonlabel>
178
                                                                                    </parent_id>
179
                                                                                </taxonlabel>
180
                                                                            </parent_id>
181
                                                                        </taxonlabel>
182
                                                                    </parent_id>
183
                                                                </taxonlabel>
184
                                                            </parent_id>
185
                                                            <taxonepithet>$infraspecificEpithet</taxonepithet>
186
                                                        </taxonlabel>
187
                                                    </parent_id>
188
                                                    <rank>$taxonRank</rank>
189
                                                    <taxonomicname>
190
                                                        <_merge_prefix>
191
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
192
                                                            <value>
193
                                                                <_alt>
194
                                                                    <1>$scientificName</1>
195
                                                                    <2>
196
                                                                        <_join_words>
197
                                                                            <1>
198
                                                                                <_join_words>
199
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
200
                                                                                    <3>$specificEpithet</3>
201
                                                                                    <5>
202
                                                                                        <_join_words>
203
                                                                                            <1>
204
                                                                                                <_if name="if has infraspecificEpithet">
205
                                                                                                    <cond>$infraspecificEpithet</cond>
206
                                                                                                    <then>$taxonRank</then>
207
                                                                                                </_if>
208
                                                                                            </1>
209
                                                                                            <2>$infraspecificEpithet</2>
210
                                                                                        </_join_words>
211
                                                                                    </5>
212
                                                                                </_join_words>
213
                                                                            </1>
214
                                                                            <2>$scientificNameAuthorship</2>
215
                                                                        </_join_words>
216
                                                                    </2>
217
                                                                </_alt>
218
                                                            </value>
219
                                                        </_merge_prefix>
220
                                                    </taxonomicname>
221
                                                </taxonlabel>
222
                                            </taxonlabel_id>
223
                                            <author>$scientificNameAuthorship</author>
224
                                            <family>$family</family>
225
                                            <genus>$genus</genus>
226
                                            <specific_epithet>$specificEpithet</specific_epithet>
227
                                            <taxonomicname>$scientificName</taxonomicname>
228
                                            <verbatimrank>$taxonRank</verbatimrank>
229
                                        </taxonverbatim>
230
                                    </taxonverbatim_id>
231
                                    <determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
232
                                    <notes>$taxonRemarks</notes>
233
                                    <taxonfit>$identificationQualifier</taxonfit>
234
                                </taxondetermination>
235
                            </taxonoccurrence>
53
                            <locationevent fkey="parent_id">
54
                                <taxonoccurrence>
55
                                    <aggregateoccurrence>
56
                                        <collectiondate>
57
                                            <_alt>
58
                                                <1>$dateCollected</1>
59
                                                <2>
60
                                                    <_date>
61
                                                        <day>
62
                                                            <_nullIf>
63
                                                                <null>0</null>
64
                                                                <type>float</type>
65
                                                                <value>$dayCollected</value>
66
                                                            </_nullIf>
67
                                                        </day>
68
                                                        <month>
69
                                                            <_nullIf>
70
                                                                <null>0</null>
71
                                                                <type>float</type>
72
                                                                <value>$monthCollected</value>
73
                                                            </_nullIf>
74
                                                        </month>
75
                                                        <year>
76
                                                            <_nullIf>
77
                                                                <null>0</null>
78
                                                                <type>float</type>
79
                                                                <value>$yearCollected</value>
80
                                                            </_nullIf>
81
                                                        </year>
82
                                                    </_date>
83
                                                </2>
84
                                            </_alt>
85
                                        </collectiondate>
86
                                        <count>$individualCount</count>
87
                                        <notes>$occurrenceRemarks</notes>
88
                                        <plantobservation>
89
                                            <authorplantcode>$collectorNumber</authorplantcode>
90
                                            <definedvalue fkey="tablerecord_id">
91
                                                <userdefined_id>
92
                                                    <userdefined>
93
                                                        <tablename>plantobservation</tablename>
94
                                                        <userdefinedname>sex</userdefinedname>
95
                                                    </userdefined>
96
                                                </userdefined_id>
97
                                                <definedvalue>$sex</definedvalue>
98
                                            </definedvalue>
99
                                            <reproductivecondition>$reproductiveCondition</reproductivecondition>
100
                                            <specimenreplicate>
101
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
102
                                                <collectioncode_dwc>$collection</collectioncode_dwc>
103
                                                <collectionnumber>$collectorNumber</collectionnumber>
104
                                                <institution_id>
105
                                                    <sourcelist>
106
                                                        <name>$specimenHolderInstitutions</name>
107
                                                        <sourcename>
108
                                                            <name>
109
                                                                <_split>
110
                                                                    <separator>[,;] *</separator>
111
                                                                    <value>$specimenHolderInstitutions</value>
112
                                                                </_split>
113
                                                            </name>
114
                                                        </sourcename>
115
                                                    </sourcelist>
116
                                                </institution_id>
117
                                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
118
                                            </specimenreplicate>
119
                                        </plantobservation>
120
                                    </aggregateoccurrence>
121
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
122
                                    <iscultivated>
123
                                        <_map>
124
                                            <cultivated>t</cultivated>
125
                                            <wild>f</wild>
126
                                            <*></*>
127
                                            <value>$establishmentMeans</value>
128
                                        </_map>
129
                                    </iscultivated>
130
                                    <isnative>
131
                                        <_map>
132
                                            <native>t</native>
133
                                            <exotic>f</exotic>
134
                                            <*></*>
135
                                            <value>$establishmentMeans</value>
136
                                        </_map>
137
                                    </isnative>
138
                                    <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
139
                                    <taxondetermination>
140
                                        <party_id><party><fullname>$identifiedBy</fullname></party></party_id>
141
                                        <taxonverbatim_id>
142
                                            <taxonverbatim>
143
                                                <taxonlabel_id>
144
                                                    <taxonlabel>
145
                                                        <parent_id>
146
                                                            <taxonlabel>
147
                                                                <rank>$taxonRank</rank>
148
                                                                <parent_id>
149
                                                                    <taxonlabel>
150
                                                                        <rank>cultivar</rank>
151
                                                                        <parent_id>
152
                                                                            <taxonlabel>
153
                                                                                <rank>forma</rank>
154
                                                                                <parent_id>
155
                                                                                    <taxonlabel>
156
                                                                                        <rank>variety</rank>
157
                                                                                        <parent_id>
158
                                                                                            <taxonlabel>
159
                                                                                                <rank>subspecies</rank>
160
                                                                                                <parent_id>
161
                                                                                                    <taxonlabel>
162
                                                                                                        <rank>species</rank>
163
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
164
                                                                                                        <parent_id>
165
                                                                                                            <taxonlabel>
166
                                                                                                                <rank>genus</rank>
167
                                                                                                                <taxonepithet>$genus</taxonepithet>
168
                                                                                                                <parent_id>
169
                                                                                                                    <taxonlabel>
170
                                                                                                                        <rank>family</rank>
171
                                                                                                                        <taxonepithet>$family</taxonepithet>
172
                                                                                                                    </taxonlabel>
173
                                                                                                                </parent_id>
174
                                                                                                            </taxonlabel>
175
                                                                                                        </parent_id>
176
                                                                                                    </taxonlabel>
177
                                                                                                </parent_id>
178
                                                                                            </taxonlabel>
179
                                                                                        </parent_id>
180
                                                                                    </taxonlabel>
181
                                                                                </parent_id>
182
                                                                            </taxonlabel>
183
                                                                        </parent_id>
184
                                                                    </taxonlabel>
185
                                                                </parent_id>
186
                                                                <taxonepithet>$infraspecificEpithet</taxonepithet>
187
                                                            </taxonlabel>
188
                                                        </parent_id>
189
                                                        <rank>$taxonRank</rank>
190
                                                        <taxonomicname>
191
                                                            <_merge_prefix>
192
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
193
                                                                <value>
194
                                                                    <_alt>
195
                                                                        <1>$scientificName</1>
196
                                                                        <2>
197
                                                                            <_join_words>
198
                                                                                <1>
199
                                                                                    <_join_words>
200
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
201
                                                                                        <3>$specificEpithet</3>
202
                                                                                        <5>
203
                                                                                            <_join_words>
204
                                                                                                <1>
205
                                                                                                    <_if name="if has infraspecificEpithet">
206
                                                                                                        <cond>$infraspecificEpithet</cond>
207
                                                                                                        <then>$taxonRank</then>
208
                                                                                                    </_if>
209
                                                                                                </1>
210
                                                                                                <2>$infraspecificEpithet</2>
211
                                                                                            </_join_words>
212
                                                                                        </5>
213
                                                                                    </_join_words>
214
                                                                                </1>
215
                                                                                <2>$scientificNameAuthorship</2>
216
                                                                            </_join_words>
217
                                                                        </2>
218
                                                                    </_alt>
219
                                                                </value>
220
                                                            </_merge_prefix>
221
                                                        </taxonomicname>
222
                                                    </taxonlabel>
223
                                                </taxonlabel_id>
224
                                                <author>$scientificNameAuthorship</author>
225
                                                <family>$family</family>
226
                                                <genus>$genus</genus>
227
                                                <specific_epithet>$specificEpithet</specific_epithet>
228
                                                <taxonomicname>$scientificName</taxonomicname>
229
                                                <verbatimrank>$taxonRank</verbatimrank>
230
                                            </taxonverbatim>
231
                                        </taxonverbatim_id>
232
                                        <determinationdate><_dateRangeStart><value>$dateIdentified</value></_dateRangeStart></determinationdate>
233
                                        <notes>$taxonRemarks</notes>
234
                                        <taxonfit>$identificationQualifier</taxonfit>
235
                                    </taxondetermination>
236
                                </taxonoccurrence>
237
                            </locationevent>
236 238
                        </locationevent>
237 239
                        <locationnarrative>
238 240
                            <_merge>
inputs/MT/Specimen/test.xml.ref
11 11
                        <accessconditions>$rights</accessconditions>
12 12
                        <iscultivated><_locationnarrative_is_cultivated><locationnarrative>$locality</locationnarrative></_locationnarrative_is_cultivated></iscultivated>
13 13
                        <locationevent>
14
                            <taxonoccurrence>
15
                                <aggregateoccurrence>
16
                                    <count>$individualCount</count>
17
                                    <notes>$occurrenceRemarks</notes>
18
                                    <plantobservation>
19
                                        <specimenreplicate>
20
                                            <collectioncode_dwc>
21
                                                <_alt>
22
                                                    <1>$collection</1>
23
                                                    <2>$collectionURL</2>
24
                                                </_alt>
25
                                            </collectioncode_dwc>
26
                                            <institution_id>
27
                                                <sourcelist>
28
                                                    <name>$specimenHolderInstitutions</name>
29
                                                    <sourcename>
30
                                                        <name>
31
                                                            <_split>
32
                                                                <separator>[,;] *</separator>
33
                                                                <value>$specimenHolderInstitutions</value>
34
                                                            </_split>
35
                                                        </name>
36
                                                    </sourcename>
37
                                                </sourcelist>
38
                                            </institution_id>
39
                                            <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
40
                                        </specimenreplicate>
41
                                    </plantobservation>
42
                                </aggregateoccurrence>
43
                                <iscultivated>
44
                                    <_map>
45
                                        <cultivated>t</cultivated>
46
                                        <wild>f</wild>
47
                                        <*></*>
48
                                        <value>$establishmentMeans</value>
49
                                    </_map>
50
                                </iscultivated>
51
                                <isnative>
52
                                    <_map>
53
                                        <native>t</native>
54
                                        <exotic>f</exotic>
55
                                        <*></*>
56
                                        <value>$establishmentMeans</value>
57
                                    </_map>
58
                                </isnative>
59
                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
60
                                <taxondetermination>
61
                                    <taxonverbatim_id>
62
                                        <taxonverbatim>
63
                                            <taxonlabel_id>
64
                                                <taxonlabel>
65
                                                    <parent_id>
66
                                                        <taxonlabel>
67
                                                            <parent_id>
68
                                                                <taxonlabel>
69
                                                                    <rank>cultivar</rank>
70
                                                                    <parent_id>
71
                                                                        <taxonlabel>
72
                                                                            <rank>forma</rank>
73
                                                                            <parent_id>
74
                                                                                <taxonlabel>
75
                                                                                    <rank>variety</rank>
76
                                                                                    <parent_id>
77
                                                                                        <taxonlabel>
78
                                                                                            <rank>subspecies</rank>
79
                                                                                            <parent_id>
80
                                                                                                <taxonlabel>
81
                                                                                                    <rank>species</rank>
82
                                                                                                    <parent_id>
83
                                                                                                        <taxonlabel>
84
                                                                                                            <rank>genus</rank>
85
                                                                                                            <taxonepithet>$genus</taxonepithet>
86
                                                                                                            <parent_id>
87
                                                                                                                <taxonlabel>
88
                                                                                                                    <rank>family</rank>
89
                                                                                                                    <taxonepithet>$family</taxonepithet>
90
                                                                                                                </taxonlabel>
91
                                                                                                            </parent_id>
92
                                                                                                        </taxonlabel>
93
                                                                                                    </parent_id>
94
                                                                                                </taxonlabel>
95
                                                                                            </parent_id>
96
                                                                                        </taxonlabel>
97
                                                                                    </parent_id>
98
                                                                                </taxonlabel>
99
                                                                            </parent_id>
100
                                                                        </taxonlabel>
101
                                                                    </parent_id>
102
                                                                </taxonlabel>
103
                                                            </parent_id>
104
                                                        </taxonlabel>
105
                                                    </parent_id>
106
                                                    <taxonomicname>
107
                                                        <_merge_prefix>
108
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
109
                                                            <value><_filter_genus><value>$genus</value></_filter_genus></value>
110
                                                        </_merge_prefix>
111
                                                    </taxonomicname>
112
                                                </taxonlabel>
113
                                            </taxonlabel_id>
114
                                            <family>$family</family>
115
                                            <genus>$genus</genus>
116
                                        </taxonverbatim>
117
                                    </taxonverbatim_id>
118
                                </taxondetermination>
119
                            </taxonoccurrence>
14
                            <locationevent fkey="parent_id">
15
                                <taxonoccurrence>
16
                                    <aggregateoccurrence>
17
                                        <count>$individualCount</count>
18
                                        <notes>$occurrenceRemarks</notes>
19
                                        <plantobservation>
20
                                            <specimenreplicate>
21
                                                <collectioncode_dwc>
22
                                                    <_alt>
23
                                                        <1>$collection</1>
24
                                                        <2>$collectionURL</2>
25
                                                    </_alt>
26
                                                </collectioncode_dwc>
27
                                                <institution_id>
28
                                                    <sourcelist>
29
                                                        <name>$specimenHolderInstitutions</name>
30
                                                        <sourcename>
31
                                                            <name>
32
                                                                <_split>
33
                                                                    <separator>[,;] *</separator>
34
                                                                    <value>$specimenHolderInstitutions</value>
35
                                                                </_split>
36
                                                            </name>
37
                                                        </sourcename>
38
                                                    </sourcelist>
39
                                                </institution_id>
40
                                                <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
41
                                            </specimenreplicate>
42
                                        </plantobservation>
43
                                    </aggregateoccurrence>
44
                                    <iscultivated>
45
                                        <_map>
46
                                            <cultivated>t</cultivated>
47
                                            <wild>f</wild>
48
                                            <*></*>
49
                                            <value>$establishmentMeans</value>
50
                                        </_map>
51
                                    </iscultivated>
52
                                    <isnative>
53
                                        <_map>
54
                                            <native>t</native>
55
                                            <exotic>f</exotic>
56
                                            <*></*>
57
                                            <value>$establishmentMeans</value>
58
                                        </_map>
59
                                    </isnative>
60
                                    <sourceaccessioncode>$dataProviderRecordID</sourceaccessioncode>
61
                                    <taxondetermination>
62
                                        <taxonverbatim_id>
63
                                            <taxonverbatim>
64
                                                <taxonlabel_id>
65
                                                    <taxonlabel>
66
                                                        <parent_id>
67
                                                            <taxonlabel>
68
                                                                <parent_id>
69
                                                                    <taxonlabel>
70
                                                                        <rank>cultivar</rank>
71
                                                                        <parent_id>
72
                                                                            <taxonlabel>
73
                                                                                <rank>forma</rank>
74
                                                                                <parent_id>
75
                                                                                    <taxonlabel>
76
                                                                                        <rank>variety</rank>
77
                                                                                        <parent_id>
78
                                                                                            <taxonlabel>
79
                                                                                                <rank>subspecies</rank>
80
                                                                                                <parent_id>
81
                                                                                                    <taxonlabel>
82
                                                                                                        <rank>species</rank>
83
                                                                                                        <parent_id>
84
                                                                                                            <taxonlabel>
85
                                                                                                                <rank>genus</rank>
86
                                                                                                                <taxonepithet>$genus</taxonepithet>
87
                                                                                                                <parent_id>
88
                                                                                                                    <taxonlabel>
89
                                                                                                                        <rank>family</rank>
90
                                                                                                                        <taxonepithet>$family</taxonepithet>
91
                                                                                                                    </taxonlabel>
92
                                                                                                                </parent_id>
93
                                                                                                            </taxonlabel>
94
                                                                                                        </parent_id>
95
                                                                                                    </taxonlabel>
96
                                                                                                </parent_id>
97
                                                                                            </taxonlabel>
98
                                                                                        </parent_id>
99
                                                                                    </taxonlabel>
100
                                                                                </parent_id>
101
                                                                            </taxonlabel>
102
                                                                        </parent_id>
103
                                                                    </taxonlabel>
104
                                                                </parent_id>
105
                                                            </taxonlabel>
106
                                                        </parent_id>
107
                                                        <taxonomicname>
108
                                                            <_merge_prefix>
109
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
110
                                                                <value><_filter_genus><value>$genus</value></_filter_genus></value>
111
                                                            </_merge_prefix>
112
                                                        </taxonomicname>
113
                                                    </taxonlabel>
114
                                                </taxonlabel_id>
115
                                                <family>$family</family>
116
                                                <genus>$genus</genus>
117
                                            </taxonverbatim>
118
                                        </taxonverbatim_id>
119
                                    </taxondetermination>
120
                                </taxonoccurrence>
121
                            </locationevent>
120 122
                        </locationevent>
121 123
                        <locationnarrative>$locality</locationnarrative>
122 124
                        <locationplace><place_id><place><continent>$continent</continent></place></place_id></locationplace>
inputs/test_taxonomic_names/Taxon/test.xml.ref
8 8
                <path>
9 9
                    <location>
10 10
                        <locationevent>
11
                            <taxonoccurrence>
12
                                <taxondetermination>
13
                                    <taxonverbatim_id>
14
                                        <taxonverbatim>
15
                                            <taxonlabel_id>
16
                                                <taxonlabel>
17
                                                    <sourceaccessioncode>$scientificNameID</sourceaccessioncode>
18
                                                    <taxonomicname>$taxonName</taxonomicname>
19
                                                </taxonlabel>
20
                                            </taxonlabel_id>
21
                                            <taxonname>$taxonName</taxonname>
22
                                        </taxonverbatim>
23
                                    </taxonverbatim_id>
24
                                </taxondetermination>
25
                            </taxonoccurrence>
11
                            <locationevent fkey="parent_id">
12
                                <taxonoccurrence>
13
                                    <taxondetermination>
14
                                        <taxonverbatim_id>
15
                                            <taxonverbatim>
16
                                                <taxonlabel_id>
17
                                                    <taxonlabel>
18
                                                        <sourceaccessioncode>$scientificNameID</sourceaccessioncode>
19
                                                        <taxonomicname>$taxonName</taxonomicname>
20
                                                    </taxonlabel>
21
                                                </taxonlabel_id>
22
                                                <taxonname>$taxonName</taxonname>
23
                                            </taxonverbatim>
24
                                        </taxonverbatim_id>
25
                                    </taxondetermination>
26
                                </taxonoccurrence>
27
                            </locationevent>
26 28
                        </locationevent>
27 29
                    </location>
28 30
                </path>
inputs/NCU/Specimen/test.xml.ref
21 21
                        </authorlocationcode>
22 22
                        <iscultivated><_locationnarrative_is_cultivated><locationnarrative>$verbatimLocality</locationnarrative></_locationnarrative_is_cultivated></iscultivated>
23 23
                        <locationevent>
24
                            <taxonoccurrence>
25
                                <aggregateoccurrence>
26
                                    <collectiondate>$dateCollected</collectiondate>
27
                                    <notes>$occurrenceRemarks</notes>
28
                                    <plantobservation>
29
                                        <authorplantcode>$collectorNumber</authorplantcode>
30
                                        <specimenreplicate>
31
                                            <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
32
                                            <collectioncode_dwc>$collectionURL</collectioncode_dwc>
33
                                            <collectionnumber>$collectorNumber</collectionnumber>
34
                                            <institution_id>
35
                                                <sourcelist>
36
                                                    <name>$specimenHolderInstitutions</name>
37
                                                    <sourcename>
38
                                                        <name>
39
                                                            <_split>
40
                                                                <separator>[,;] *</separator>
41
                                                                <value>$specimenHolderInstitutions</value>
42
                                                            </_split>
43
                                                        </name>
44
                                                    </sourcename>
45
                                                </sourcelist>
46
                                            </institution_id>
47
                                            <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
48
                                        </specimenreplicate>
49
                                    </plantobservation>
50
                                </aggregateoccurrence>
51
                                <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
52
                                <iscultivated>$cultivated</iscultivated>
53
                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
54
                                <taxondetermination>
55
                                    <taxonverbatim_id>
56
                                        <taxonverbatim>
57
                                            <taxonlabel_id>
58
                                                <taxonlabel>
59
                                                    <taxonomicname>
60
                                                        <_alt>
61
                                                            <1>$scientificName</1>
62
                                                            <2>$taxonName</2>
63
                                                        </_alt>
64
                                                    </taxonomicname>
65
                                                </taxonlabel>
66
                                            </taxonlabel_id>
67
                                            <taxonname>$taxonName</taxonname>
68
                                            <taxonomicname>$scientificName</taxonomicname>
69
                                        </taxonverbatim>
70
                                    </taxonverbatim_id>
71
                                </taxondetermination>
72
                                <taxondetermination>
73
                                    <isoriginal>true</isoriginal>
74
                                    <taxonverbatim_id><taxonverbatim><taxonomicname>$originalScientificName</taxonomicname></taxonverbatim></taxonverbatim_id>
75
                                </taxondetermination>
76
                            </taxonoccurrence>
24
                            <locationevent fkey="parent_id">
25
                                <taxonoccurrence>
26
                                    <aggregateoccurrence>
27
                                        <collectiondate>$dateCollected</collectiondate>
28
                                        <notes>$occurrenceRemarks</notes>
29
                                        <plantobservation>
30
                                            <authorplantcode>$collectorNumber</authorplantcode>
31
                                            <specimenreplicate>
32
                                                <catalognumber_dwc>$accessionNumber</catalognumber_dwc>
33
                                                <collectioncode_dwc>$collectionURL</collectioncode_dwc>
34
                                                <collectionnumber>$collectorNumber</collectionnumber>
35
                                                <institution_id>
36
                                                    <sourcelist>
37
                                                        <name>$specimenHolderInstitutions</name>
38
                                                        <sourcename>
39
                                                            <name>
40
                                                                <_split>
41
                                                                    <separator>[,;] *</separator>
42
                                                                    <value>$specimenHolderInstitutions</value>
43
                                                                </_split>
44
                                                            </name>
45
                                                        </sourcename>
46
                                                    </sourcelist>
47
                                                </institution_id>
48
                                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
49
                                            </specimenreplicate>
50
                                        </plantobservation>
51
                                    </aggregateoccurrence>
52
                                    <collector_id><party><fullname>$recordedBy</fullname></party></collector_id>
53
                                    <iscultivated>$cultivated</iscultivated>
54
                                    <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
55
                                    <taxondetermination>
56
                                        <taxonverbatim_id>
57
                                            <taxonverbatim>
58
                                                <taxonlabel_id>
59
                                                    <taxonlabel>
60
                                                        <taxonomicname>
61
                                                            <_alt>
62
                                                                <1>$scientificName</1>
63
                                                                <2>$taxonName</2>
64
                                                            </_alt>
65
                                                        </taxonomicname>
66
                                                    </taxonlabel>
67
                                                </taxonlabel_id>
68
                                                <taxonname>$taxonName</taxonname>
69
                                                <taxonomicname>$scientificName</taxonomicname>
70
                                            </taxonverbatim>
71
                                        </taxonverbatim_id>
72
                                    </taxondetermination>
73
                                    <taxondetermination>
74
                                        <isoriginal>true</isoriginal>
75
                                        <taxonverbatim_id><taxonverbatim><taxonomicname>$originalScientificName</taxonomicname></taxonverbatim></taxonverbatim_id>
76
                                    </taxondetermination>
77
                                </taxonoccurrence>
78
                            </locationevent>
77 79
                        </locationevent>
78 80
                        <locationnarrative>$verbatimLocality</locationnarrative>
79 81
                        <locationplace>
inputs/bien2_traits/TraitObservation/test.xml.ref
18 18
                        <iscultivated><_locationnarrative_is_cultivated><locationnarrative>$verbatimLocality</locationnarrative></_locationnarrative_is_cultivated></iscultivated>
19 19
                        <locationevent>
20 20
                            <method_id><method><name>$samplingProtocol</name></method></method_id>
21
                            <taxonoccurrence>
22
                                <aggregateoccurrence><plantobservation><specimenreplicate><sourceaccessioncode>$occurrenceID</sourceaccessioncode></specimenreplicate></plantobservation></aggregateoccurrence>
23
                                <growthform>$growthForm</growthform>
24
                                <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
25
                                <taxondetermination>
26
                                    <taxonverbatim_id>
27
                                        <taxonverbatim>
28
                                            <taxonlabel_id>
29
                                                <taxonlabel>
30
                                                    <parent_id>
31
                                                        <taxonlabel>
32
                                                            <rank>$taxonRank</rank>
33
                                                            <parent_id>
34
                                                                <taxonlabel>
35
                                                                    <rank>cultivar</rank>
36
                                                                    <parent_id>
37
                                                                        <taxonlabel>
38
                                                                            <rank>forma</rank>
39
                                                                            <parent_id>
40
                                                                                <taxonlabel>
41
                                                                                    <rank>variety</rank>
42
                                                                                    <parent_id>
43
                                                                                        <taxonlabel>
44
                                                                                            <rank>subspecies</rank>
45
                                                                                            <parent_id>
46
                                                                                                <taxonlabel>
47
                                                                                                    <rank>species</rank>
48
                                                                                                    <taxonepithet>$specificEpithet</taxonepithet>
49
                                                                                                    <parent_id>
50
                                                                                                        <taxonlabel>
51
                                                                                                            <rank>genus</rank>
52
                                                                                                            <taxonepithet>$genus</taxonepithet>
53
                                                                                                            <parent_id>
54
                                                                                                                <taxonlabel>
55
                                                                                                                    <rank>family</rank>
56
                                                                                                                    <taxonepithet>$family</taxonepithet>
57
                                                                                                                </taxonlabel>
58
                                                                                                            </parent_id>
59
                                                                                                        </taxonlabel>
60
                                                                                                    </parent_id>
61
                                                                                                </taxonlabel>
62
                                                                                            </parent_id>
63
                                                                                        </taxonlabel>
64
                                                                                    </parent_id>
65
                                                                                </taxonlabel>
66
                                                                            </parent_id>
67
                                                                        </taxonlabel>
68
                                                                    </parent_id>
69
                                                                </taxonlabel>
70
                                                            </parent_id>
71
                                                            <taxonepithet>$infraspecificEpithet</taxonepithet>
72
                                                        </taxonlabel>
73
                                                    </parent_id>
74
                                                    <rank>$taxonRank</rank>
75
                                                    <taxonomicname>
76
                                                        <_merge_prefix>
77
                                                            <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
78
                                                            <value>
79
                                                                <_join_words>
80
                                                                    <1>
81
                                                                        <_alt>
82
                                                                            <1>$taxonName</1>
83
                                                                            <2>
84
                                                                                <_join_words>
85
                                                                                    <2><_filter_genus><value>$genus</value></_filter_genus></2>
86
                                                                                    <3>$specificEpithet</3>
87
                                                                                    <5>
88
                                                                                        <_join_words>
89
                                                                                            <1>
90
                                                                                                <_if name="if has infraspecificEpithet">
91
                                                                                                    <cond>$infraspecificEpithet</cond>
92
                                                                                                    <then>$taxonRank</then>
93
                                                                                                </_if>
94
                                                                                            </1>
95
                                                                                            <2>$infraspecificEpithet</2>
96
                                                                                        </_join_words>
97
                                                                                    </5>
98
                                                                                </_join_words>
99
                                                                            </2>
100
                                                                        </_alt>
101
                                                                    </1>
102
                                                                    <2>$scientificNameAuthorship</2>
103
                                                                </_join_words>
104
                                                            </value>
105
                                                        </_merge_prefix>
106
                                                    </taxonomicname>
107
                                                </taxonlabel>
108
                                            </taxonlabel_id>
109
                                            <author>$scientificNameAuthorship</author>
110
                                            <family>$family</family>
111
                                            <genus>$genus</genus>
112
                                            <specific_epithet>$specificEpithet</specific_epithet>
113
                                            <taxonname>$taxonName</taxonname>
114
                                            <verbatimrank>$taxonRank</verbatimrank>
115
                                        </taxonverbatim>
116
                                    </taxonverbatim_id>
117
                                </taxondetermination>
118
                                <trait>
119
                                    <name>$measurementName</name>
120
                                    <units>$measurementUnit</units>
121
                                    <value>$measurementValue</value>
122
                                </trait>
123
                            </taxonoccurrence>
21
                            <locationevent fkey="parent_id">
22
                                <taxonoccurrence>
23
                                    <aggregateoccurrence><plantobservation><specimenreplicate><sourceaccessioncode>$occurrenceID</sourceaccessioncode></specimenreplicate></plantobservation></aggregateoccurrence>
24
                                    <growthform>$growthForm</growthform>
25
                                    <sourceaccessioncode>$occurrenceID</sourceaccessioncode>
26
                                    <taxondetermination>
27
                                        <taxonverbatim_id>
28
                                            <taxonverbatim>
29
                                                <taxonlabel_id>
30
                                                    <taxonlabel>
31
                                                        <parent_id>
32
                                                            <taxonlabel>
33
                                                                <rank>$taxonRank</rank>
34
                                                                <parent_id>
35
                                                                    <taxonlabel>
36
                                                                        <rank>cultivar</rank>
37
                                                                        <parent_id>
38
                                                                            <taxonlabel>
39
                                                                                <rank>forma</rank>
40
                                                                                <parent_id>
41
                                                                                    <taxonlabel>
42
                                                                                        <rank>variety</rank>
43
                                                                                        <parent_id>
44
                                                                                            <taxonlabel>
45
                                                                                                <rank>subspecies</rank>
46
                                                                                                <parent_id>
47
                                                                                                    <taxonlabel>
48
                                                                                                        <rank>species</rank>
49
                                                                                                        <taxonepithet>$specificEpithet</taxonepithet>
50
                                                                                                        <parent_id>
51
                                                                                                            <taxonlabel>
52
                                                                                                                <rank>genus</rank>
53
                                                                                                                <taxonepithet>$genus</taxonepithet>
54
                                                                                                                <parent_id>
55
                                                                                                                    <taxonlabel>
56
                                                                                                                        <rank>family</rank>
57
                                                                                                                        <taxonepithet>$family</taxonepithet>
58
                                                                                                                    </taxonlabel>
59
                                                                                                                </parent_id>
60
                                                                                                            </taxonlabel>
61
                                                                                                        </parent_id>
62
                                                                                                    </taxonlabel>
63
                                                                                                </parent_id>
64
                                                                                            </taxonlabel>
65
                                                                                        </parent_id>
66
                                                                                    </taxonlabel>
67
                                                                                </parent_id>
68
                                                                            </taxonlabel>
69
                                                                        </parent_id>
70
                                                                    </taxonlabel>
71
                                                                </parent_id>
72
                                                                <taxonepithet>$infraspecificEpithet</taxonepithet>
73
                                                            </taxonlabel>
74
                                                        </parent_id>
75
                                                        <rank>$taxonRank</rank>
76
                                                        <taxonomicname>
77
                                                            <_merge_prefix>
78
                                                                <prefix><_taxon_family_require_std><family>$family</family></_taxon_family_require_std></prefix>
79
                                                                <value>
80
                                                                    <_join_words>
81
                                                                        <1>
82
                                                                            <_alt>
83
                                                                                <1>$taxonName</1>
84
                                                                                <2>
85
                                                                                    <_join_words>
86
                                                                                        <2><_filter_genus><value>$genus</value></_filter_genus></2>
87
                                                                                        <3>$specificEpithet</3>
88
                                                                                        <5>
89
                                                                                            <_join_words>
90
                                                                                                <1>
91
                                                                                                    <_if name="if has infraspecificEpithet">
92
                                                                                                        <cond>$infraspecificEpithet</cond>
93
                                                                                                        <then>$taxonRank</then>
94
                                                                                                    </_if>
95
                                                                                                </1>
96
                                                                                                <2>$infraspecificEpithet</2>
97
                                                                                            </_join_words>
98
                                                                                        </5>
99
                                                                                    </_join_words>
100
                                                                                </2>
101
                                                                            </_alt>
102
                                                                        </1>
103
                                                                        <2>$scientificNameAuthorship</2>
104
                                                                    </_join_words>
105
                                                                </value>
106
                                                            </_merge_prefix>
107
                                                        </taxonomicname>
108
                                                    </taxonlabel>
109
                                                </taxonlabel_id>
110
                                                <author>$scientificNameAuthorship</author>
111
                                                <family>$family</family>
112
                                                <genus>$genus</genus>
113
                                                <specific_epithet>$specificEpithet</specific_epithet>
114
                                                <taxonname>$taxonName</taxonname>
115
                                                <verbatimrank>$taxonRank</verbatimrank>
116
                                            </taxonverbatim>
117
                                        </taxonverbatim_id>
118
                                    </taxondetermination>
119
                                    <trait>
120
                                        <name>$measurementName</name>
121
                                        <units>$measurementUnit</units>
122
                                        <value>$measurementValue</value>
123
                                    </trait>
124
                                </taxonoccurrence>
125
                            </locationevent>
124 126
                        </locationevent>
125 127
                        <locationnarrative>$verbatimLocality</locationnarrative>
126 128
                        <locationplace>
inputs/TEAM/VL/VegBIEN.csv
13 13
Subplot Number,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/*_id/location/sourceaccessioncode/_if[@name=""if subplot""]/cond/_first/2",
14 14
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsenddate/_alt/2/_dateRangeEnd/value",
15 15
Observation Date,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if has event""]/then/parent_id/locationevent/obsstartdate/_alt/2/_dateRangeStart/value",
16
Observation Date,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1,
17
Id,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode/_first/1,
18
Diameter at 1.3m,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,"""Tree diameter measurement. {cm}"" (Diameter definition on p. 7 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)"
19
Tree Number,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/tag,
20
1ha Plot X Coordinate,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m,"""Point of intersection {in the X axis} where the tree was observed in the 1ha plot. {m}"" (1ha Plot X Coordinate definition on p. 8 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)"
21
1ha Plot Y Coordinate,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m,"""Point of intersection {in the Y axis} where the tree was observed in the 1ha plot. {m}"" (1ha Plot Y Coordinate definition on p. 8 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)"
22
1ha Plot Number,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
23
Id,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/1/_if[@name=""if individual""]/cond/_exists",
24
Tree Number,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/2",
25
Names of Collectors,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/collector_id/party/fullname,
26
Id,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
27
Id,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else/_first/1",
28
Species,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet",
29
Genus,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet",
30
Family,"/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet",
31
Family,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family,
32
Genus,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2/_filter_genus/value,
33
Species,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
34
Family,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family,
35
Genus,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
36
Species,/location/locationevent/locationevent:[@fkey=parent_id]/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
16 37
Observation Date,/location/locationevent/obsenddate/_alt/2/_dateRangeEnd/value,
17 38
Observation Date,/location/locationevent/obsstartdate/_alt/2/_dateRangeStart/value,
18
Observation Date,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1,
19
Id,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/sourceaccessioncode/_first/1,
20
Diameter at 1.3m,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m/_cm_to_m/value,"""Tree diameter measurement. {cm}"" (Diameter definition on p. 7 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)"
21
Tree Number,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/tag,
22
1ha Plot X Coordinate,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m,"""Point of intersection {in the X axis} where the tree was observed in the 1ha plot. {m}"" (1ha Plot X Coordinate definition on p. 8 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)"
23
1ha Plot Y Coordinate,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m,"""Point of intersection {in the Y axis} where the tree was observed in the 1ha plot. {m}"" (1ha Plot Y Coordinate definition on p. 8 at <https://projects.nceas.ucsb.edu/nceas/projects/bien/repository/raw/inputs/TEAM/_src/TEAM-DataPackage-20120920191251_3859/Vegetation+-+Trees+&+Lianas/Vegetation-Tree-and-Liana-Metadata-1.5.pdf>)"
24
1ha Plot Number,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/cond/_exists",
25
Id,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/1/_if[@name=""if individual""]/cond/_exists",
26
Tree Number,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/2",
27
Names of Collectors,/location/locationevent/taxonoccurrence/collector_id/party/fullname,
28
Id,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
29
Id,"/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/2/_if[@name=""if organism in AggregateOccurrence""]/else/_first/1",
30
Species,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet",
31
Genus,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=genus]/taxonepithet",
32
Family,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,species,genus,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=family]/taxonepithet",
33
Family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/prefix/_taxon_family_require_std/family,
34
Genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/2/_filter_genus/value,
35
Species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/taxonomicname/_merge_prefix/value/_alt/2/_join_words/1/_alt/2/_join_words/3/_join_words/1,
36
Family,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/family,
37
Genus,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/genus,
38
Species,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/specific_epithet,
39 39
Latitude,"/location/locationplace/*_id/place/*_id/coordinates/latitude_deg/_nullIf:[null=0,type=float]/value",
40 40
Longitude,"/location/locationplace/*_id/place/*_id/coordinates/longitude_deg/_nullIf:[null=0,type=float]/value",
41 41
Latitude,"/location/locationplace/*_id/place/matched_place_id/place:[.,source_id/source/shortname=geoscrub]/*_id/coordinates:[source_id/source/shortname=geoscrub]/_first/2/latitude_deg/_nullIf:[null=0,type=float]/value",""".,"" sorts it with other coordinates mappings"
inputs/TEAM/VL/test.xml.ref
28 28
                                    <obsstartdate><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></obsstartdate>
29 29
                                </locationevent>
30 30
                            </parent_id>
31
                            <locationevent fkey="parent_id">
32
                                <taxonoccurrence>
33
                                    <aggregateoccurrence>
34
                                        <collectiondate>$Observation Date</collectiondate>
35
                                        <plantobservation>
36
                                            <sourceaccessioncode>$Id</sourceaccessioncode>
37
                                            <stemobservation>
38
                                                <diameterbreastheight_m><_cm_to_m><value>$Diameter at 1.3m</value></_cm_to_m></diameterbreastheight_m>
39
                                                <tag>$Tree Number</tag>
40
                                                <xposition_m>$1ha Plot X Coordinate</xposition_m>
41
                                                <yposition_m>$1ha Plot Y Coordinate</yposition_m>
42
                                            </stemobservation>
43
                                        </plantobservation>
44
                                    </aggregateoccurrence>
45
                                    <authortaxoncode>$Tree Number</authortaxoncode>
46
                                    <collector_id><party><fullname>$Names of Collectors</fullname></party></collector_id>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff