Revision 67
Added by Matt Jones over 24 years ago
Makefile | ||
---|---|---|
1 | 1 |
# For Win32, make 'SEP' be a semicolon |
2 | 2 |
SEP=: |
3 | 3 |
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip |
4 |
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP)./classes |
|
4 |
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP)./classes$(SEP)catalog.jar
|
|
5 | 5 |
|
6 | 6 |
USER=jones |
7 | 7 |
PW=your-pw-goes-here |
... | ... | |
10 | 10 |
|
11 | 11 |
default: all |
12 | 12 |
|
13 |
all: orasax reader query servlet |
|
13 |
all: orasax reader query servlet xvalid
|
|
14 | 14 |
|
15 |
xvalid: |
|
16 |
$(JAVAC) -classpath "$(CPATH)" \ |
|
17 |
XMLValidate.java \ |
|
18 |
GenericXMLValidate.java |
|
19 |
|
|
15 | 20 |
orasax: util |
16 | 21 |
$(JAVAC) -classpath "$(CPATH)" \ |
17 | 22 |
DBSAXWriter.java \ |
... | ... | |
65 | 70 |
java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \ |
66 | 71 |
lakename $(USER) $(PW) |
67 | 72 |
|
73 |
xvtest: |
|
74 |
java -cp $(CPATH) XMLValidate \ |
|
75 |
test.xml |
|
76 |
|
|
68 | 77 |
javadoc: |
69 | 78 |
javadoc -classpath $(CPATH) -d docs \ |
70 | 79 |
-sourcepath ./classes edu.ucsb.nceas.metacat |
test.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0"?> |
2 |
<!DOCTYPE testroot [ |
|
3 |
<!ELEMENT testroot (a)> |
|
4 |
<!ELEMENT a (b*,c*)> |
|
5 |
<!ATTLIST a testatt CDATA #REQUIRED> |
|
6 |
<!ELEMENT b (#PCDATA)> |
|
7 |
<!ELEMENT c (#PCDATA)> |
|
8 |
<!ATTLIST c newatt CDATA #IMPLIED> |
|
9 |
]> |
|
2 | 10 |
<testroot> |
3 | 11 |
<a testatt="attvalue1"> |
4 | 12 |
<b>Value1</b> |
Also available in: Unified diff
modified make to add xml validation code