gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Angus" <da...@apache.org>
Subject [PATCH] Profile.dtd
Date Tue, 24 Jun 2003 11:00:59 GMT
Hi,

profile.xml, and other profile files, contain modules, projects, repositories and servers.

This patch extends the profile DTD to validate accordingly.

Reason: because newbies like me can use DTD's to validate our xml before we fire up GUMP

d.

(PS patch is simply appended, if you want some other submission let me know)



cvs -z9 diff -u dtd/profile.dtd 
Index: dtd/profile.dtd
===================================================================
RCS file: /home/cvs/jakarta-gump/dtd/profile.dtd,v
retrieving revision 1.1
diff -u -r1.1 profile.dtd
--- dtd/profile.dtd	26 Aug 2001 23:01:46 -0000	1.1
+++ dtd/profile.dtd	24 Jun 2003 10:52:04 -0000
@@ -1,10 +1,23 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
+<!ELEMENT profile (module|project|repository|server)*>
+<!ELEMENT module EMPTY>
+<!ELEMENT project EMPTY>
+<!ELEMENT repository EMPTY>
+<!ELEMENT server EMPTY>
 
-<!ELEMENT profile (project*) >
-<!ELEMENT project EMPTY >
-
-<!ATTLIST profile 
-  name CDATA #IMPLIED >
-
+<!ATTLIST profile
+	name CDATA #IMPLIED
+>
+<!ATTLIST module
+	href CDATA #REQUIRED
+>
 <!ATTLIST project
-  href CDATA #REQUIRED >
+	href CDATA #REQUIRED
+>
+<!ATTLIST repository
+	href CDATA #REQUIRED
+>
+<!ATTLIST server
+	href CDATA #REQUIRED
+>
+
Mime
View raw message