Revision 77
Added by Matt Jones over 24 years ago
validate.html | ||
---|---|---|
1 |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
5 |
<meta name="GENERATOR" content="Mozilla/4.7 [en] (Win98; U) [Netscape]"> |
|
6 |
<title>Insert XML to be validated here:</title> |
|
7 |
</head> |
|
8 |
<body bgcolor="#FFFFFF"> |
|
9 |
Insert XML to be validated here: |
|
10 |
<br><form action="/servlets/MetaCatServlet" method="POST"> |
|
11 |
<input type="hidden" name="action" value="validate"> |
|
12 |
<p><textarea |
|
13 |
name="valtext" rows="16" cols="146"><?xml version="1.0"?> |
|
14 |
<!DOCTYPE eml-dataset SYSTEM "eml-dataset.dtd"> <eml-dataset> <meta_file_id>NCEAS-1998-2090-Dataset</meta_file_id> |
|
15 |
<dataset_id>NCEAS-1998-2090</dataset_id> <title>Trapping locations, |
|
16 |
animal body mass, and breeding conditions of Neotoma fuscipes on Sedgwick |
|
17 |
Reserve</title> <originator> <party> <!--(party_individual|party_org)--> |
|
18 |
<party_individual description="Full name of individual"> <salutation |
|
19 |
description="Salutation">Dr.</salutation> <given_name description="First |
|
20 |
name">Rebecca</given_name> <surname description="Last Name">Burton</surname> |
|
21 |
</party_individual> <meta_address> <address>National Center for |
|
22 |
Ecological Analysis & Synthesis, University of California, Santa Barbara, |
|
23 |
735 State St., Suite 300</address> <city>Santa Barbara</city> |
|
24 |
<admin_area>CA</admin_area> <postal_code>93101</postal_code> |
|
25 |
<country>USA</country> <email>burton@nceas.ucsb.edu</email> |
|
26 |
<phone> </phone> </meta_address> </party> </originator> |
|
27 |
<abstract> <paragraph></paragraph> </abstract> <keyword_info> |
|
28 |
<keyword></keyword> <keyword_thesaurus></keyword_thesaurus> |
|
29 |
</keyword_info> <relations/> </eml-dataset></textarea> |
|
30 |
<p><input type="submit" name="B1" value="Submit"> |
|
31 |
<br></form> |
|
32 |
<p>The server has a catalog system for reading DTDs. All 8 EML DTDs are |
|
33 |
included as entries with the format: |
|
34 |
<p><font face="Courier">OVERRIDE YES</font> |
|
35 |
<br><font face="Courier">PUBLIC "-//NCEAS//eml-dataset//EN" "eml-dataset.dtd"</font> |
|
36 |
<br><font face="Courier">SYSTEM "urn:nceas:test-eml-dataset" "eml-dataset.dtd"</font> |
|
37 |
<br><font face="Courier">SYSTEM "eml-dataset.dtd" "eml-dataset.dtd"</font> |
|
38 |
<p>Any one of the indicated SYSTEM or PUBLIC identifiers can be used in |
|
39 |
the XML |
|
40 |
</body> |
|
41 |
</html> |
|
0 | 42 |
lib/contents.html | ||
---|---|---|
35 | 35 |
</p> |
36 | 36 |
<p><a href="loadxml.html" target="right">Load an XML Document</a> |
37 | 37 |
</p> |
38 |
<p><a href="validate.html" target="right">Validate an XML Document</a> |
|
39 |
</p> |
|
38 | 40 |
<p> |
39 | 41 |
To view results that are XML formatted in this demo, it is easiest to use |
40 | 42 |
Internet Explorer 5. Although Netscape browsers will allow you to |
lib/validate.html | ||
---|---|---|
1 |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
5 |
<meta name="GENERATOR" content="Mozilla/4.7 [en] (Win98; U) [Netscape]"> |
|
6 |
<title>Insert XML to be validated here:</title> |
|
7 |
</head> |
|
8 |
<body bgcolor="#FFFFFF"> |
|
9 |
Insert XML to be validated here: |
|
10 |
<br><form action="/servlets/MetaCatServlet" method="POST"> |
|
11 |
<input type="hidden" name="action" value="validate"> |
|
12 |
<p><textarea |
|
13 |
name="valtext" rows="16" cols="146"><?xml version="1.0"?> |
|
14 |
<!DOCTYPE eml-dataset SYSTEM "eml-dataset.dtd"> <eml-dataset> <meta_file_id>NCEAS-1998-2090-Dataset</meta_file_id> |
|
15 |
<dataset_id>NCEAS-1998-2090</dataset_id> <title>Trapping locations, |
|
16 |
animal body mass, and breeding conditions of Neotoma fuscipes on Sedgwick |
|
17 |
Reserve</title> <originator> <party> <!--(party_individual|party_org)--> |
|
18 |
<party_individual description="Full name of individual"> <salutation |
|
19 |
description="Salutation">Dr.</salutation> <given_name description="First |
|
20 |
name">Rebecca</given_name> <surname description="Last Name">Burton</surname> |
|
21 |
</party_individual> <meta_address> <address>National Center for |
|
22 |
Ecological Analysis & Synthesis, University of California, Santa Barbara, |
|
23 |
735 State St., Suite 300</address> <city>Santa Barbara</city> |
|
24 |
<admin_area>CA</admin_area> <postal_code>93101</postal_code> |
|
25 |
<country>USA</country> <email>burton@nceas.ucsb.edu</email> |
|
26 |
<phone> </phone> </meta_address> </party> </originator> |
|
27 |
<abstract> <paragraph></paragraph> </abstract> <keyword_info> |
|
28 |
<keyword></keyword> <keyword_thesaurus></keyword_thesaurus> |
|
29 |
</keyword_info> <relations/> </eml-dataset></textarea> |
|
30 |
<p><input type="submit" name="B1" value="Submit"> |
|
31 |
<br></form> |
|
32 |
<p>The server has a catalog system for reading DTDs. All 8 EML DTDs are |
|
33 |
included as entries with the format: |
|
34 |
<p><font face="Courier">OVERRIDE YES</font> |
|
35 |
<br><font face="Courier">PUBLIC "-//NCEAS//eml-dataset//EN" "eml-dataset.dtd"</font> |
|
36 |
<br><font face="Courier">SYSTEM "urn:nceas:test-eml-dataset" "eml-dataset.dtd"</font> |
|
37 |
<br><font face="Courier">SYSTEM "eml-dataset.dtd" "eml-dataset.dtd"</font> |
|
38 |
<p>Any one of the indicated SYSTEM or PUBLIC identifiers can be used in |
|
39 |
the XML |
|
40 |
</body> |
|
41 |
</html> |
|
0 | 42 |
contents.html | ||
---|---|---|
35 | 35 |
</p> |
36 | 36 |
<p><a href="loadxml.html" target="right">Load an XML Document</a> |
37 | 37 |
</p> |
38 |
<p><a href="validate.html" target="right">Validate an XML Document</a> |
|
39 |
</p> |
|
38 | 40 |
<p> |
39 | 41 |
To view results that are XML formatted in this demo, it is easiest to use |
40 | 42 |
Internet Explorer 5. Although Netscape browsers will allow you to |
Also available in: Unified diff
added validation code + changes