Project

General

Profile

« Previous | Next » 

Revision 1929

Added by brooke about 21 years ago

This is the merge from the branch WEB_UI_REDESIGN_BRANCH back into the head.
The only files that have been removed are those in lib/style/eml2; other files
that have been cvs removed (only from lib/ and lib/style) have been re-added
elsewhere (i.e. moved from one directory to another).
New files have also been added as follows:

/lib/style/common - this contains common xsl stylesheets and any other files
which are common to the web interface, no matter what "skin" is chosen.

/lib/style/skins - this contains a subdirectory for each of the available skins.

The names of the subdirectories contained within this "skins" directory
correspond directly with the values of the "qformat" parameter sent as part of
the user request. The system will automatically look in the correct folder under
style/skins/ based on this value. In there, it expects to find the following
(substitute the real value for {qformat}):

subdirectory is style/skins/{qformat}

it contains:

{qformat}.js
- contains url settings for the globally-included header/left sidebar/right
sidebar/footer, where applicable

{qformat}.css
- contains the css styles for customizing the presentation of the HTML sent
back to the client. Also contains the size settings for the
globally-included header/left sidebar/right sidebar/footer, where
applicable.

{qformat}.xml
- contains the mappings from doctype-> xsl stylesheet, so the system knows
which stylesheet to use for styling any particular requested document.

- any other content referenced in any of these files (for example, it may
contain the html for the header, footer etc, and their associated
images, if these are not pulled from a separate site)

The build.xml file has had the main user-configurable parameters pulled out into
the new build.properties file, making it easier to find and edit these values.

View differences:

lib/knb.xml
1
<?xml version="1.0"?>
2
<style-set name="knb">
3
<!-- general login & search -->
4
  <default-style>@systemidserver@@style-path@/ascii-treeview.xsl</default-style>
5
  <doctype publicid="-//NCEAS//login//EN">
6
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/login.xsl</target>
7
  </doctype>
8
  <doctype publicid="-//NCEAS//resultset//EN">
9
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/resultset.xsl</target>
10
  </doctype>
11
  <doctype publicid="-//NCEAS//eml-generic//EN">
12
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/generic-morpho.xsl</target>
13
  </doctype>
14
<!-- pre-beta6 modules -->
15
<!-- NOTE these settings are unchanged from the previous version - only the xsl 
16
     filename has changed from "eml-dataset-display.xsl" to "eml-dataset-2.0.0beta4.xsl" -->
17
  <doctype publicid="eml://ecoinformatics.org/eml-2.0.0">
18
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml2/eml-2.0.0.xsl</target>
19
  </doctype>
20
  <doctype publicid="-//NCEAS//eml-dataset//EN">
21
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-dataset-2.0.0beta4.xsl</target>
22
  </doctype>
23
  <doctype publicid="-//NCEAS//eml-dataset-2.0//EN">
24
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-dataset-2.0.0beta4.xsl</target>
25
  </doctype>
26
  <doctype publicid="-//NCEAS//eml-resource//EN">
27
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-dataset-2.0.0beta4.xsl</target>
28
  </doctype>
29
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN">
30
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-dataset-2.0.0beta4.xsl</target>
31
  </doctype>
32
<!-- beta6 modules -->
33
  <doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN">
34
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-access-2.0.0beta6.xsl</target>
35
  </doctype>
36
  <doctype publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN">
37
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-attribute-2.0.0beta6.xsl</target>
38
  </doctype>
39
  <doctype publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN">
40
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-constraint-2.0.0beta6.xsl</target>
41
  </doctype>
42
  <doctype publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN">
43
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-coverage-2.0.0beta6.xsl</target>
44
  </doctype>
45
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN">
46
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-dataset-2.0.0beta6.xsl</target>
47
  </doctype>
48
  <doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN">
49
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-entity-2.0.0beta6.xsl</target>
50
  </doctype>
51
  <doctype publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN">
52
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-literature-2.0.0beta6.xsl</target>
53
  </doctype>
54
  <doctype publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN">
55
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-physical-2.0.0beta6.xsl</target>
56
  </doctype>
57
  <doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN">
58
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-project-2.0.0beta6.xsl</target>
59
  </doctype>
60
  <doctype publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN">
61
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-protocol-2.0.0beta6.xsl</target>
62
  </doctype>
63
  <doctype publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN">
64
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/eml-software-2.0.0beta6.xsl</target>
65
  </doctype>
66
</style-set>
67 0

  
lib/filtertest.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying examples of the use of 
13
  * Oracle XML tools for query only
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
-->
29
<html>
30
<head>
31
<title>MetaCat</title>
32
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
33
</head>
34
<body class="emlbody">
35
<table width="100%">
36
<tr><td colspan="2">
37
<b>MetaCat Query</b> -- a simple database query against MetaCat
38
</td></tr>
39
<tr><td width="40%" valign="top">
40
<form action="@servlet-path@" target="right" method="POST">
41
  <input type="hidden" name="action" value="query">
42
  <input type="text" name="anyfield" value="%" size="15">
43
  <input type="submit" value="Run query"><br />
44
  Format: 
45
  <input type="radio" name="qformat" value="xml">XML
46
  <input type="radio" name="qformat" value="html" checked>HTML
47
  <br />
48
  Search only (filter): &nbsp;
49
  <select name="filterdoctype">
50
  <option value="-//NCEAS//eml-dataset-2.0//EN">eml-dataset-2.0
51
  <option value="-//NCEAS//eml-dataset//EN">eml-dataset
52
  </select>
53
</form>
54
<a href="login.html" target="_top">Login</a>
55
</td>
56
<td valign="top">
57
<font size="-1">
58
For the test database, some valid values for the search that produce document
59
results include "Value1" and "lakename" and maybe "122W"
60
<p>
61
To view results that are XML formatted in this demo, it is easiest to use 
62
Internet Explorer 5. Although Netscape browsers will allow you to 
63
download XML documents, only IE5 will display XML at this time.
64
</font>
65
</td>
66
</tr>
67
</table>
68
</body>
69
</html>
70 0

  
lib/querymetacat.html
1
<html>
2
<head>
3
<title>Untitled Document</title>
4
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5
</head>
6

  
7
<body bgcolor="#FFFFFF" text="#000000">
8
<form name="form1" method="post" action="@servlet-path@">
9
  <p>action 
10
    <input type="text" name="action">
11
  </p>
12
  <p>qformat 
13
    <input type="text" name="qformat">
14
  </p>
15
  <p>query
16
    <textarea name="query" rows="20" cols="80"></textarea>
17
  </p>
18
  <p>
19
    <input type="submit" name="Submit" value="Submit">
20
  </p>
21
</form>
22
</body>
23
</html>
24 0

  
lib/test-query.xml
1
<?xml version="1.0"?>
2
<!DOCTYPE pathquery PUBLIC "-//NCEAS//pathquery-1.0//EN" 
3
          "file:///home/computer/jones/projects/pbi/development/xmltodb/lib/pathquery.dtd" >
4
<pathquery version="1.0">
5
  <meta_file_id>Example-03</meta_file_id>
6
  <querytitle>Test query</querytitle>
7
  <returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>
8
  <returndoctype>-//NCEAS//eml-file//EN</returndoctype>
9
  <querygroup operator="INTERSECT">
10
    <queryterm casesensitive="false" searchmode="contains">
11
      <value>NCEAS</value>
12
      <pathexpr>meta_file_id</pathexpr>
13
    </queryterm>
14
    <queryterm casesensitive="true" searchmode="contains">
15
      <value>Insights</value>
16
    </queryterm>
17
  </querygroup>
18
</pathquery>
19 0

  
lib/pathquery.dtd
1
<!--
2
  * pathquery.dtd
3
  *
4
  *      Authors: Matt Jones
5
  * Organization: National Center for Ecological Analysis and Synthesis
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: 13 June 2000
10
  *    File Info: '$Id$'
11
  *
12
  * This DTD describes the structure and content of XML documents used
13
  * to represent, store, and exchange a simple path-based query expression.
14
  * This syntax represents a small subset of the capabilities of the XPath 
15
  * language (http://www.w3.org/TR/xpath), and is intended as a simple
16
  * query language for the metadata catalog database (mcdb).  It is 
17
  * intended that all expressions in this language can be mapped directly
18
  * into XPath syntax, but not all Xpath expressions can be mapped into this
19
  * syntax.
20
  *
21
  * Although ideally we would implement the query language as either the full
22
  * XPath language or as one of the emerging XML query languages (like
23
  * XML-QL or XQL), in practice this would be an involved undertaking that
24
  * doesn't necessarily have high payoffs.  But we will revisit this issue and
25
  * determine later whether these full-featured technologies are warranted
26
  * after we have some experience with a simpler implementation such as this.
27
-->
28

  
29
<!-- Overall query container -->
30
<!ELEMENT pathquery (meta_file_id*, querytitle*, returndoctype*, 
31
                     filterdoctype*, returnfield*, 
32
                     owner*, site*, querygroup)>
33

  
34
<!-- The version of this query specification -->
35
<!ATTLIST pathquery version CDATA #FIXED "1.2">
36

  
37
<!-- a unique identifier for this query document -->
38
<!ELEMENT meta_file_id (#PCDATA)>
39

  
40
<!-- a descriptive title for this query document -->
41
<!ELEMENT querytitle (#PCDATA)>
42

  
43
<!-- optional doctype returned spec - only documents with this type returned -->
44
<!-- hits are looked up using package links to this doctype -->
45
<!ELEMENT returndoctype (#PCDATA)>
46

  
47
<!-- optional doctype filter - only documents with this type are searched -->
48
<!ELEMENT filterdoctype (#PCDATA)>
49

  
50
<!-- optional name of an xml node to be returned in the resultset -->
51
<!ELEMENT returnfield (#PCDATA)>
52

  
53
<!-- optional name of the owner of the documents to be returned -->
54
<!-- multiple owner fields are ORed together in the query -->
55
<!ELEMENT owner (#PCDATA)>
56

  
57
<!-- optional name of the site/server of the documents to be returned -->
58
<!-- multiple site fields are ORed together in the query -->
59
<!ELEMENT site (#PCDATA)>
60

  
61
<!-- A group of related query terms -->
62
<!ELEMENT querygroup ( (queryterm|querygroup)+ )>
63

  
64
<!-- the boolean expression used to combine the query terms in this group -->
65
<!ATTLIST querygroup operator (INTERSECT|UNION) #REQUIRED>
66

  
67
<!-- a query term is the atomic unit of a query that can be translated
68
     to a single SELECT statement -->
69
<!ELEMENT queryterm (value, pathexpr?)>
70

  
71
<!-- a boolean flag indicating whether matches should be case-sensitive or
72
     case-independent for this queryterm, one of: true|false
73
     and searchmode is the type of match to perform against the text value -->
74
<!ATTLIST queryterm casesensitive (true|false) #REQUIRED
75
                    searchmode 
76
(contains|starts-with|ends-with|equals|isnot-equal|greater-than|less-than|
77
greater-than-equals|less-than-equals) #REQUIRED>
78

  
79
<!-- the text value for which we are searching -->
80
<!ELEMENT value (#PCDATA)>
81

  
82
<!-- the path to the TEXT node used to constrain the query -->
83
<!ELEMENT pathexpr (#PCDATA)>
84

  
85
<!-- End of file -->
86 0

  
lib/browse.xml
1
<?xml version="1.0"?>
2
<style-set name="browse">
3
<!-- general login & search -->
4
  <default-style>@systemidserver@@style-path@/ascii-treeview.xsl</default-style>
5
  <doctype publicid="-//NCEAS//resultset//EN">
6
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/browse.xsl</target>
7
  </doctype>
8
</style-set>
9 0

  
lib/knbquery.html
1
<html>
2
<head>
3
<title>KNB user info query</title>
4
</head>
5
<body>
6
  <h1>KNB User Info Query Page</h1>
7
  <p>Note that you must first login with the correct permissions or this
8
  will return nothing.</p>
9
  <form action="@html-path@/servlet/metacat" method="POST">
10
    <input type="hidden" name="action" value="query" >   
11
    <input type="hidden" name="query" value="" >
12
    <input type="hidden" name="qformat" value="html" >
13
    <input type="hidden" name="operator" value="UNION" >
14
    <input type="hidden" name="returnfield" value="/download/date" >
15
    <input type="hidden" name="returnfield" value="/download/param" >
16
    <input type="hidden" name="filterdoctype" value="download">
17
    <input type="text" name="anyfield">
18
    <input type="submit">
19
  </form>
20
</body>
21
</html>
22 0

  
lib/validate.html
1
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  * 
13
  * This is an HTML document for loading an xml document into Oracle
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
-->
29
<html>
30
<head>
31
   <title>Insert XML to be validated here:</title>
32
   <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
33
</head>
34
<body class="emlbody">
35
Insert XML to be validated here:
36
<br><form action="@servlet-path@" method="POST">
37
<input type="hidden" name="action" value="validate">
38
<p><textarea 
39
    name="valtext" rows="16" cols="146">&lt;?xml version="1.0"?>
40
&lt;!DOCTYPE eml-dataset PUBLIC "-//NCEAS//eml-dataset//EN" "eml-dataset.dtd"> &lt;eml-dataset> &lt;meta_file_id>NCEAS-1998-2090-Dataset&lt;/meta_file_id>
41
&lt;dataset_id>NCEAS-1998-2090&lt;/dataset_id> &lt;title>Trapping locations,
42
animal body mass, and breeding conditions of Neotoma fuscipes on Sedgwick
43
Reserve&lt;/title> &lt;originator> &lt;party> &lt;!--(party_individual|party_org)-->
44
&lt;party_individual description="Full name of individual"> &lt;salutation
45
description="Salutation">Dr.&lt;/salutation> &lt;given_name description="First
46
name">Rebecca&lt;/given_name> &lt;surname description="Last Name">Burton&lt;/surname>
47
&lt;/party_individual> &lt;meta_address> &lt;address>National Center for
48
Ecological Analysis &amp; Synthesis, University of California, Santa Barbara,
49
735 State St., Suite 300&lt;/address> &lt;city>Santa Barbara&lt;/city>
50
&lt;admin_area>CA&lt;/admin_area> &lt;postal_code>93101&lt;/postal_code>
51
&lt;country>USA&lt;/country> &lt;email>burton@nceas.ucsb.edu&lt;/email>
52
&lt;phone> &lt;/phone> &lt;/meta_address> &lt;/party> &lt;/originator>
53
&lt;abstract> &lt;paragraph>&lt;/paragraph> &lt;/abstract> &lt;keyword_info>
54
&lt;keyword>&lt;/keyword> &lt;keyword_thesaurus>&lt;/keyword_thesaurus>
55
&lt;/keyword_info> &lt;relations/> &lt;/eml-dataset></textarea>
56
<p><input type="submit" name="B1" value="Submit">
57
<br></form>
58
<p>The server has a catalog system for reading DTDs. All 8 EML DTDs are
59
included as entries with the format:
60
<p><font face="Courier">OVERRIDE YES</font>
61
<br><font face="Courier">PUBLIC "-//NCEAS//eml-dataset//EN" "eml-dataset.dtd"</font>
62
<br><font face="Courier">SYSTEM "urn:nceas:test-eml-dataset" "eml-dataset.dtd"</font>
63
<br><font face="Courier">SYSTEM "eml-dataset.dtd" "eml-dataset.dtd"</font>
64
<p>Any one of the indicated SYSTEM or PUBLIC identifiers can be used in
65
the XML
66
</body>
67
</html>
68 0

  
lib/replMain.html
1
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Chad Berkley
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  * 
13
  * This is an HTML document for loading an xml document into Oracle
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
-->
29
<html>
30

  
31
<head>
32
  <title>Metacat Replication Control Panel</title>
33
  <link rel="stylesheet" type="text/css" href="@web-base-url@/default.css">
34
</head>
35
<body>
36

  
37
<table class="tabledefault">
38
<tr><td rowspan="2"><img src="@web-base-url@/images/KNBLogo.gif"></td>
39
<td colspan="7">
40
<div class="title">Metacat Replication Control Panel</div>
41
</td>
42
</tr>
43
<tr>
44
  <td><a href="." class="toollink"> KNB </a></td>
45
  <td><a href="data.html" class="toollink"> Data </a></td>
46
  <td><a href="people.html" class="toollink"> People </a></td>
47
  <td><a href="informatics" class="toollink"> Informatics </a></td>
48
  <td><a href="biodiversity" class="toollink"> Biodiversity </a></td>
49
  <td><a href="education" class="toollink"> Education </a></td>
50
  <td><a href="software" class="toollink"> Software </a></td>
51
</tr>
52
</table>
53

  
54
<p>&nbsp;</p>
55

  
56
<table border="0" cellpadding="4" cellspacing="0" width="100%" 
57
       class="tablepanel">
58
  <tr class="tablehead">
59
    <td><b>Time Handler</b></td>
60
  </tr>
61
  <tr>
62
    <td rowspan="2" width="50%">
63
    <form action="@replication-path@" method="POST" target="bottom">
64
      <input type="radio"  name="action" value="start">Start 
65
      &nbsp;&nbsp; Delta T: <input value="30" size="4" name="rate"> seconds<br>
66
      <input type="radio"  name="action" value="stop">Stop <br><br>
67
      <input type="submit" value="Submit" target="bottom">
68
    </form>
69
    </td>
70
  </tr>
71
</table>
72
<table border="0" cellpadding="4" cellspacing="0" width="100%" 
73
       class="tablepanel">
74
  <tr class="tablehead">
75
    <td><b>Force Replication</b></td>
76
  </tr>
77
  <tr>
78
    <td rowspan="2" width="50%">
79
    <form action="@replication-path@" method="POST" target="bottom">
80
      <input type="radio"  name="action" value="getall"> Get All - bring all updated
81
      documents from remote hosts to this server<br><br>
82
      
83
      <input type="submit" value="Submit" target="bottom">
84
    </form>
85
    </td>
86
  </tr>
87
</table>
88
<table border="1" cellpadding="4" cellspacing="0" width="100%" 
89
       class="tablepanel">
90
  <tr class="tablehead">
91
    <td><b>Servers</b></td>
92
  </tr>
93
  <tr>
94
    <td rowspan="2" width="50%">
95
    <form action="@replication-path@" method="POST" target="bottom">
96
      <input type="hidden" name="action" value="servercontrol">
97
      <input type="radio" name="subaction" value="delete"> Remove this server<br>
98
      <input type="radio" name="subaction" value="add"> Add this server<br>
99
      <input size="30" name="server" >  <br>
100
      Replicate xml doc To server (1 or 0)?: <input size="2" name="replicate"> <br>
101
      Replicate data file To server (1 or 0)?: <input size="2" name="datareplicate"> <br>
102
      Localhost is a hub to server (1 or 0)?: <input size="2" name="hub"> <br>
103
      Download certificate from<br>
104
      <input type="text" size="30" name="certificate">
105
      <br><br>
106
      <input type="submit" value="Submit" target="bottom">
107
    </form>
108
    </td>
109
  </tr>
110
</table>
111
<a href="@replication-path@?action=servercontrol&subaction=list" target="bottom">
112
Refresh Server List</a>
113
</body>
114
</html>
115 0

  
lib/setaccess.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for loading an xml document into Oracle
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<html>
29
<head>
30
<title>MetaCat</title>
31
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
</head>
33
<body class="emlbody">
34
<b>If you want set this document public readable, please click submit</b>
35
<form action="@servlet-path@"  method="POST">
36
  
37
  <input type="hidden" name="action" value="setaccess">
38
  <strong>Provide a Document ID </strong>
39
  <input type="text" name="docid"> 
40
  <input type="hidden" name="principal" value="public">
41
  <input type="hidden" name="permission" value="read">
42
  <input type="hidden" name="permType" value="allow">
43
  <input type="hidden" name="permOrder" value="allowFirst">
44
  <input type="submit" value="Process Action">
45
</form>
46
<p />
47
</body>
48
</html>
49 0

  
lib/metacat.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying metadata catalog tools
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
  <HTML>
29
  <HEAD>
30
  <TITLE>MetaCat</TITLE>
31
  <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
  </HEAD> 
33
  <FRAMESET COLS="*" FRAMEBORDER=0 BORDER=0>
34

  
35
    <FRAMESET ROWS="165,*"  FRAMEBORDER=0 BORDER=0>
36
    
37
    <FRAME SRC="contents.html" BORDER=0 NAME="left">
38

  
39
    <FRAME SRC="@servlet-path@?action=query&query=NCEAS%25&qformat=html&returndoctype=-//NCEAS//eml-dataset-2.0//EN" BORDER=0 NAME="right">
40

  
41
    </FRAMESET>
42
  </FRAMESET>
43 0

  
lib/queform.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying examples of the use of 
13
  * Oracle XML tools for query only
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
-->
29
<html>
30
<head>
31
<title>MetaCat</title>
32
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
33
</head>
34
<body class="emlbody">
35
<table width="100%">
36
<tr><td colspan="2">
37
<b>MetaCat Query</b> -- a simple database query against MetaCat
38
</td></tr>
39
<tr><td width="40%" valign="top">
40
<form action="@servlet-path@" target="right" method="POST">
41
  <input type="hidden" name="action" value="query">
42
  <input type="text" name="anyfield" value="%" size="15">
43
  <input type="submit" value="Run query"><br />
44
  Format: 
45
  <input type="radio" name="qformat" value="xml">XML
46
  <input type="radio" name="qformat" value="html" checked>HTML
47
  <br />
48
  Return: &nbsp;
49
  <select name="returndoctype">
50
  <option value="-//NCEAS//eml-dataset-2.0//EN">eml-dataset-2.0
51
  <option value="-//NCEAS//eml-dataset//EN">eml-dataset
52
  <option value="any">Any
53
  </select>
54
</form>
55
<a href="login.html" target="_top">Login</a>
56
</td>
57
<td valign="top">
58
<font size="-1">
59
For the test database, some valid values for the search that produce document
60
results include "Value1" and "lakename" and maybe "122W"
61
<p>
62
To view results that are XML formatted in this demo, it is easiest to use 
63
Internet Explorer 5. Although Netscape browsers will allow you to 
64
download XML documents, only IE5 will display XML at this time.
65
</font>
66
</td>
67
</tr>
68
</table>
69
</body>
70
</html>
71 0

  
lib/loadxml.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for loading an xml document into Oracle
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<html>
29
<head>
30
<title>MetaCat</title>
31
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
</head>
33
<body class="emlbody">
34
<b>MetaCat XML Loader</b>
35
<p>
36
Upload, Change, or Delete an XML document using this form.
37
</p>
38
<form action="@servlet-path@" target="right" method="POST">
39
  <strong>1. Choose an action: </strong>
40
  <input type="radio" name="action" value="insert" checked> Insert
41
  <input type="radio" name="action" value="update"> Update
42
  <input type="radio" name="action" value="delete"> Delete
43
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Process Action">
44
  <br />
45
  <strong>2. Provide a Document ID </strong>
46
  <input type="text" name="docid"> 
47
  &nbsp;&nbsp;&nbsp;
48
  <br />
49
  <strong>3. Provide XML text </strong> (not needed for Delete)
50
  <strong>
51
  <br />
52
  <textarea name="doctext" cols="65" rows="15"></textarea>
53
  <br />
54
  <strong>4. Provide DTD text for upload </strong> (optional; not needed for Delete)
55
  <br />
56
  <textarea name="dtdtext" cols="65" rows="15"></textarea>
57
  <br />
58
</form>
59
<p />
60
</body>
61
</html>
62 0

  
lib/replControl.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Chad Berkley
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for loading an xml document into Oracle
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
  <HTML>
29
  <HEAD>
30
  <TITLE>MetaCat</TITLE>
31
  <link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
  </HEAD> 
33
  <FRAMESET COLS="*" FRAMEBORDER=0 BORDER=0>
34

  
35
    <FRAMESET ROWS="*,150"  FRAMEBORDER=0 BORDER=0>
36
    
37
    <FRAME SRC="replMain.html" BORDER=0 NAME="top">
38

  
39
    <FRAME SRC="@replication-path@?action=servercontrol&subaction=list"
40
           name="bottom">
41

  
42
    </FRAMESET>
43
  </FRAMESET>
44 0

  
lib/loginonly.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for login to MetaCat
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<HTML>
29
<HEAD>
30
<TITLE>MetaCat</TITLE>
31
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
<script language="JavaScript">
33
   function PutFocus(theForm) {
34
	theForm.username.focus()
35
   }
36
</script>
37
</HEAD>
38
<BODY class="emlbody" onLoad="PutFocus(document.forms[0]);">
39

  
40
  <P>&nbsp;
41

  
42
  <FORM ACTION="@servlet-path@" METHOD="POST">
43
    <INPUT TYPE="hidden" NAME="action" VALUE="login">
44
    <INPUT TYPE="hidden" NAME="qformat" VALUE="xml">
45
    <P>Username &nbsp;&nbsp;&nbsp;
46
    <INPUT TYPE="text" NAME="username" SIZE="15">
47
    <P>Password &nbsp;&nbsp;&nbsp;
48
    <INPUT TYPE="password" NAME="password" SIZE="15">&nbsp;&nbsp;&nbsp;
49
    <INPUT TYPE="submit" VALUE=" Login ">
50
  </FORM>
51

  
52
</BODY>
53
</HTML>
54 0

  
lib/keywords.xml
1
<?xml version="1.0"?>
2
<style-set name="browse">
3
<!-- general login & search -->
4
  <default-style>@systemidserver@@style-path@/ascii-treeview.xsl</default-style>
5
  <doctype publicid="-//NCEAS//resultset//EN">
6
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-path@/keywords-list.xsl</target>
7
  </doctype>
8
</style-set>
9 0

  
lib/contents.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying examples of the use of 
13
  * Oracle XML tools
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
-->
29
<html>
30
<head>
31
<title>MetaCat</title>
32
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
33
</head>
34
<body class="emlbody"> 
35
<table width="100%">
36
<tr><td colspan="2">
37
<b>MetaCat Query</b> -- a simple database query against MetaCat
38
</td></tr>
39
<tr><td width="40%" valign="top">
40
<form action="@servlet-path@" target="right" method="POST">
41
  <input type="hidden" name="action" value="query">
42
  <input type="text" name="anyfield" value="%" size="15">
43
  <input type="submit" value="Run query"><br />
44
  Format: 
45
  <input type="radio" name="qformat" value="xml">XML
46
  <input type="radio" name="qformat" value="html" checked>HTML
47
  <br />
48
  Return: &nbsp;
49
  <select name=returndoctype>
50
  <option value="-//NCEAS//eml-dataset-2.0//EN">eml-dataset-2.0
51
  <option value="-//NCEAS//eml-dataset//EN">eml-dataset
52
  <option value="any">Any
53
  </select>
54
</form>
55
<a href="@servlet-path@?action=logout&qformat=html" target="_top">Logout</a>
56
<br /><a href="loadxml.html" target="right">Load an XML Document</a>
57
<br /><a href="validate.html" target="right">Validate an XML Document</a>
58
<br /><a href="../docs/" target="top">Browse the API for the Servlet</a>
59
</td>
60
<td valign="top">
61
<font size="-1">
62
For the test database, some valid values for the search that produce document
63
results include "Value1" and "lakename" and maybe "122W"
64
<p>
65
To view results that are XML formatted in this demo, it is easiest to use 
66
Internet Explorer 5. Although Netscape browsers will allow you to 
67
download XML documents, only IE5 will display XML at this time.
68
</font>
69
</td>
70
</tr>
71
</table>
72
</body>
73
</html>
74 0

  
lib/cos-license.html
1
<title>Servlets.com | com.oreilly.servlet license</title>Copyright (C) 2001-2002 by Jason Hunter, jhunter_AT_servlets.com.<br>
2
All rights reserved.
3

  
4
<p> The source code, object code, and documentation in the com.oreilly.servlet 
5
  package is copyright and owned by Jason Hunter. 
6
<p>USE RIGHTS
7
<p> Permission is granted to use the com.oreilly.servlet.* packages in the development 
8
  of any non-commercial project. For this use you are granted a non-exclusive, 
9
  non-transferable limited license at no cost.
10
<p>For a commercial project, permission is granted to use the com.oreilly.servlet.* 
11
  packages provided that every person on the development team for that project 
12
  owns a copy of the book <i>Java Servlet Programming</i> (O'Reilly) in its <i>most 
13
  recent edition</i>. The most recent edition is currently the 2nd Edition, available 
14
  in association with Amazon.com at <a href="http://www.amazon.com/exec/obidos/ASIN/0596000405/jasonhunter">http://www.amazon.com/exec/obidos/ASIN/0596000405/jasonhunter</a>.
15
<p>Other (sometimes cheaper) license terms are available upon request; please 
16
  write to jhunter_AT_servlets.com for more information. 
17
<p>REDISTRIBUTION RIGHTS
18
<p>Commercial redistribution rights of the com.oreilly.servlet.* packages are 
19
  available by writing jhunter_AT_servlets.com.
20
<p>Non-commercial redistribution is permitted provided that:
21
<p>1. You redistribute the package in object code form only (as Java .class files 
22
  or a .jar file containing the .class files) and only as part of a product that 
23
  uses the classes as part of its primary functionality.</p>
24
<p>2. The product containing the package is non-commercial in nature.</p>
25
<p>3. The public interface to the classes in the package, and the public interface 
26
  to any classes with similar functionality, is hidden from end users when engaged 
27
  in normal use of the product.</p>
28
<p>4. The distribution is not part of a software development kit, operating system, 
29
  other library, or a development tool without written permission from the copyright 
30
  holder.</p>
31
<p>5. The distribution includes copyright notice as follows: &quot;The source 
32
  code, object code, and documentation in the com.oreilly.servlet package is copyright 
33
  and owned by Jason Hunter.&quot; in the documentation and/or other materials 
34
  provided with the distribution.</p>
35
<p>6. You reproduce the above copyright notice, this list of conditions, and the 
36
  following disclaimer in the documentation and/or other materials provided with 
37
  the distribution.</p>
38
<p>7. Licensor retains title to and ownership of the Software and all enhancements, 
39
  modifications, and updates to the Software.</p>
40
<p>Note that the com.oreilly.servlet package is provided "as is" and the author 
41
  will not be liable for any damages suffered as a result of your use. Furthermore, 
42
  you understand the package comes without any technical support. 
43
<p>
44

  
45
You can always find the latest version of the com.oreilly.servlet package at
46
<a href="http://www.servlets.com">http://www.servlets.com</a>.
47

  
48
<p>
49

  
50
<pre>
51
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
52
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
53
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
54
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
55
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
56
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
57
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
58
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
59
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
60
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
61
SUCH DAMAGE.
62
</pre>
63
<p> Thanks,<br>
64
  Jason Hunter<br>
65
  jhunter_AT_servlets.com
66 0

  
lib/login.html
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Matt Jones
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for login to MetaCat
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<HTML>
29
<HEAD>
30
<TITLE>MetaCat</TITLE>
31
<link rel="stylesheet" type="text/css" href="@html-path@/style/rowcol.css">
32
<script language="JavaScript">
33
   function PutFocus(theForm) {
34
	theForm.username.focus()
35
   }
36
</script>
37
</HEAD>
38
<BODY class="emlbody" onLoad="PutFocus(document.forms[0]);">
39

  
40
  <P>&nbsp;
41

  
42
  <FORM ACTION="@servlet-path@" METHOD="POST">
43
    <INPUT TYPE="hidden" NAME="action" VALUE="login">
44
    <INPUT TYPE="hidden" NAME="qformat" VALUE="html">
45
    <P>Username &nbsp;&nbsp;&nbsp;
46
    <INPUT TYPE="text" NAME="username" SIZE="15">
47
    <P>Password &nbsp;&nbsp;&nbsp;
48
    <INPUT TYPE="password" NAME="password" SIZE="15">&nbsp;&nbsp;&nbsp;
49
    <INPUT TYPE="submit" VALUE=" Login ">
50
  </FORM>
51

  
52
</BODY>
53
</HTML>
54 0

  
lib/style/eml-dataset-display.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  * 
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-dataset.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format 
30
  * suitable for rendering with modern web browsers.
31
-->
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33

  
34
  <xsl:output method="html" encoding="iso-8859-1"/>
35
  
36
  <xsl:param name="qformat">default</xsl:param>
37

  
38
  <xsl:template match="/">
39
    <html>
40
      <head>
41
        <link rel="stylesheet" type="text/css" 
42
              href="@style-path@/{$qformat}.css" />
43
<!--
44
              href="@style-path@/default.css" />
45
-->
46
      </head>
47
      <body>
48
        <center>
49
          <h1>Data set description</h1>
50
          <h3>Ecological Metadata Language</h3>
51
        </center>
52
        <table width="100%">
53
        <xsl:apply-templates select="/dataset/title" mode="layout"/>
54
        <xsl:apply-templates select="/dataset/shortName" mode="layout"/>
55
        <xsl:apply-templates select="/dataset/identifier" mode="layout"/>
56
        </table>
57

  
58
        <xsl:apply-templates/>      
59

  
60

  
61
        <table width="100%">
62
        <tr><td class="highlight">
63
        <b><xsl:text>Related Metadata and Data Files:</xsl:text></b>
64
        </td></tr>
65
        <tr><td>
66
        <ul>
67
          <xsl:for-each select="//triple">
68
            <li>
69
             <a><xsl:attribute name="href"><![CDATA[@html-path@/servlet/metacat?action=read&qformat=@default-style@&docid=]]><xsl:value-of select="./subject"/></xsl:attribute><xsl:value-of select="./subject"/></a>
70
             <xsl:text> </xsl:text>
71
             <xsl:value-of select="./relationship"/>
72
             <xsl:text> </xsl:text>
73
             <a><xsl:attribute name="href"><![CDATA[@html-path@/servlet/metacat?action=read&qformat=@default-style@&docid=]]><xsl:value-of select="./object"/></xsl:attribute><xsl:value-of select="./object"/></a>
74
            </li>
75
          </xsl:for-each>
76
        </ul>
77
        </td></tr>
78
        </table>
79

  
80
      </body>
81
    </html>
82
  </xsl:template>
83

  
84
  <xsl:template match="identifier"/>
85
  <xsl:template match="identifier" mode="layout">
86
     <tr>
87
       <td class="highlight"><b><xsl:text>Metadata Identifier:</xsl:text></b></td>
88
       <td><xsl:value-of select="."/>
89
       <xsl:if test="./@system">
90
         (Metadata system=<xsl:value-of select="./@system"/>)
91
       </xsl:if>
92
       </td>
93
     </tr>
94
  </xsl:template>
95

  
96
  <xsl:template match="title"/>
97
  <xsl:template match="title" mode="layout">
98
     <tr>
99
       <td class="highlight"><b><xsl:text>Title:</xsl:text></b></td>
100
       <td><b><xsl:value-of select="."/></b></td>
101
     </tr>
102
  </xsl:template>
103

  
104
  <xsl:template match="shortName"/>
105
  <xsl:template match="shortName" mode="layout">
106
     <tr>
107
       <td class="highlight"><b><xsl:text>Short Name:</xsl:text></b></td>
108
       <td><xsl:value-of select="."/></td>
109
     </tr>
110
  </xsl:template>
111

  
112
  <xsl:template match="originator">
113
    <p class="indent">
114
      <xsl:apply-templates/>
115
    </p>
116
  </xsl:template>
117

  
118
  <xsl:template match="originator[1]">
119
      <p><xsl:text> </xsl:text></p>
120
      <table width="100%">
121
      <tr><td class="highlight">
122
      <b><xsl:text>Data Set Owner(s):</xsl:text></b>
123
      </td></tr>
124
      </table>
125
      <p class="indent">
126
        <xsl:apply-templates/>
127
      </p>
128
  </xsl:template>
129

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff