1 |
34
|
jones
|
<?xml version="1.0"?>
|
2 |
|
|
<!--
|
3 |
|
|
* eml-dataset1.xsql
|
4 |
|
|
*
|
5 |
|
|
* Authors: Matt Jones
|
6 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
* Created: 2000 April 5
|
10 |
|
|
* Version: 0.01
|
11 |
|
|
* File Info: '$Id$'
|
12 |
|
|
*
|
13 |
|
|
* This is an XSQL (http://technet.oracle.com/tech/xml) document designed
|
14 |
|
|
* to query a relational database and return the result as a well-formed
|
15 |
|
|
* XML document that contains the information necessary to transform the
|
16 |
|
|
* document into the eml-dataset.dtd module of the Ecological Metadata
|
17 |
|
|
* Language (EML)
|
18 |
|
|
-->
|
19 |
|
|
<eml-dataset connection="demo" xmlns:xsql="urn:oracle-xsql">
|
20 |
|
|
|
21 |
|
|
<xsql:query tag-case="lower"
|
22 |
|
|
rowset-element=""
|
23 |
|
|
row-element=""
|
24 |
|
|
id-attribute="">
|
25 |
|
|
|
26 |
|
|
SELECT meta_file_id,dataset_id,title FROM eml_dataset
|
27 |
|
|
WHERE meta_file_id = '{@meta_file_id}'
|
28 |
|
|
|
29 |
|
|
</xsql:query>
|
30 |
|
|
|
31 |
|
|
<xsql:query tag-case="lower"
|
32 |
|
|
row-element="originator"
|
33 |
|
|
rowset-element=""
|
34 |
|
|
id-attribute="">
|
35 |
|
|
|
36 |
|
|
SELECT p.party_org, pi.salutation, pi.given_name, pi.surname, pi.jobtitle,
|
37 |
|
|
ma.address, ma.city, ma.admin_area, ma.postal_code, ma.country,
|
38 |
|
|
ma.resource_url, ma.email, ma.work_phone, ma.home_phone, ma.fax,
|
39 |
|
|
ma.tdd_phone
|
40 |
|
|
FROM party p, party_individual pi, meta_address ma
|
41 |
|
|
WHERE p.party_individual_id = pi.party_individual_id
|
42 |
|
|
AND p.meta_address_id = ma.meta_address_id
|
43 |
|
|
AND p.meta_file_id = '{@meta_file_id}'
|
44 |
|
|
|
45 |
|
|
</xsql:query>
|
46 |
|
|
|
47 |
|
|
<xsql:query tag-case="lower"
|
48 |
|
|
rowset-element=""
|
49 |
|
|
row-element=""
|
50 |
|
|
id-attribute="">
|
51 |
|
|
|
52 |
|
|
SELECT abstract FROM eml_dataset
|
53 |
|
|
WHERE meta_file_id = '{@meta_file_id}'
|
54 |
|
|
|
55 |
|
|
</xsql:query>
|
56 |
|
|
|
57 |
|
|
<xsql:query tag-case="lower"
|
58 |
|
|
row-element="keyword_info"
|
59 |
|
|
rowset-element=""
|
60 |
|
|
id-attribute="">
|
61 |
|
|
|
62 |
|
|
SELECT keyword, keyword_type, keyword_thesaurus
|
63 |
|
|
FROM keyword_info
|
64 |
|
|
WHERE meta_file_id = '{@meta_file_id}'
|
65 |
|
|
|
66 |
|
|
</xsql:query>
|
67 |
|
|
|
68 |
|
|
</eml-dataset>
|