Project

General

Profile

metacat / xsqltest / eml-dataset1.xsql @ 180

1
<?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: eml-dataset1.xsql 34 2000-04-13 16:42:03Z jones $'
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
<?xml-stylesheet type="text/xsl" href="eml-dataset.xsl"?>
20
<eml-dataset connection="demo" xmlns:xsql="urn:oracle-xsql">
21

    
22
<xsql:query tag-case="lower" 
23
            rowset-element="" 
24
            row-element="" 
25
            id-attribute="">
26

    
27
  SELECT meta_file_id,dataset_id,title FROM eml_dataset
28
   WHERE meta_file_id = '{@meta_file_id}'
29

    
30
</xsql:query>
31

    
32
<xsql:query tag-case="lower" 
33
            row-element="originator" 
34
            rowset-element="" 
35
            id-attribute="">
36

    
37
  SELECT p.party_org, pi.salutation, pi.given_name, pi.surname, pi.jobtitle, 
38
         ma.address, ma.city, ma.admin_area, ma.postal_code, ma.country,
39
         ma.resource_url, ma.email, ma.work_phone, ma.home_phone, ma.fax,
40
         ma.tdd_phone 
41
    FROM party p, party_individual pi, meta_address ma
42
   WHERE p.party_individual_id = pi.party_individual_id
43
     AND p.meta_address_id = ma.meta_address_id
44
     AND p.meta_file_id = '{@meta_file_id}'
45

    
46
</xsql:query>
47

    
48
<xsql:query tag-case="lower" 
49
            rowset-element="" 
50
            row-element="" 
51
            id-attribute="">
52

    
53
  SELECT abstract FROM eml_dataset
54
   WHERE meta_file_id = '{@meta_file_id}'
55

    
56
</xsql:query>
57

    
58
<xsql:query tag-case="lower" 
59
            row-element="keyword_info" 
60
            rowset-element="" 
61
            id-attribute="">
62

    
63
  SELECT keyword, keyword_type, keyword_thesaurus
64
    FROM keyword_info
65
   WHERE meta_file_id = '{@meta_file_id}'
66

    
67
</xsql:query>
68

    
69
</eml-dataset>