Project

General

Profile

example_id_system_scope_future.xml

gastil gastil, 04/15/2011 12:37 PM

 
1
<?xml version="1.0"?>                                                           <!-- feature request ... will not pass parser currently -->
2
<?xml-stylesheet type="text/xsl"
3
        href="../../style/eml/eml-2.0.0.xsl"?>
4
<eml:eml xmlns:eml="eml://ecoinformatics.org/eml-2.1.0"
5
        xmlns:stmml="http://www.xml-cml.org/schema/stmml"
6
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
        xmlns:ds="eml://ecoinformatics.org/dataset-2.1.0" 
8
        packageId="knb-lter-xxx.1.2"
9
        scope="system" system="knb"
10
        xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.0 http://nis.lternet.edu/schemas/EML/eml-2.1.0/eml.xsd">
11
        <!-- scope="system" is required in eml element -->
12
        
13
        <access scope="document" order="allowFirst" authSystem="knb">
14
                <allow>
15
                        <principal>public</principal>
16
                        <permission>read</permission>
17
                </allow>
18
        </access>
19
        <dataset scope="document">
20
                <title>foo</title>
21
                <creator id="foo" scope="document">
22
                        <organizationName>foo</organizationName>
23
                </creator>
24
                <creator id="janedoe" scope="system" system="XXX-LTER"> <!-- repeated id with different system -->
25
                        <individualName>
26
                                <givenName>Jane</givenName>
27
                                <surName>Doe</surName>
28
                        </individualName>
29
                        <organizationName>Some Random LTER</organizationName>
30
                </creator>
31
                <associatedParty id="joedoh" scope="document">
32
                        <individualName>
33
                                <givenName>Joe</givenName>
34
                                <surName>Doh</surName>
35
                        </individualName>        
36
                        <role>contentProvider</role>
37
                </associatedParty>
38
                <contact id="janedoe" scope="system" system="LTER"> <!-- repeated id with different system -->
39
                        <organizationName>Some Random LTER</organizationName>
40
                        <positionName>Information Manager</positionName>
41
                </contact>
42
                
43
                <project id="xxx-boilerplate-project_XXX" system="xxxlter" scope="system">
44
                        <title>XXX Project</title>
45
                        <personnel scope="document">
46
                                <references>janedoe</references>  <!-- ambiguous -->
47
                                <role>Principal Investigator</role>
48
                        </personnel>        
49
                        <personnel>
50
                                <references>joedoh</references>
51
                                <role>CO-PI</role>
52
                        </personnel>                        
53
                </project>
54
        </dataset>
55
</eml:eml>
56
<!-- When attempting to upload the above doc, metacat gives this error:
57
        Error in xml document.  This EML document is not valid because the id janedoe occurs more than once.  IDs must be unique.
58
-->