summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xml/htdocs/dtd/metadata.dtd')
-rw-r--r--xml/htdocs/dtd/metadata.dtd23
1 files changed, 21 insertions, 2 deletions
diff --git a/xml/htdocs/dtd/metadata.dtd b/xml/htdocs/dtd/metadata.dtd
index 8333e5c4..c7544b87 100644
--- a/xml/htdocs/dtd/metadata.dtd
+++ b/xml/htdocs/dtd/metadata.dtd
@@ -5,7 +5,7 @@
<!ATTLIST catmetadata pkgname CDATA "">
<!-- Metadata for a package -->
-<!ELEMENT pkgmetadata ( (herd|maintainer|longdescription|use)* )>
+<!ELEMENT pkgmetadata ( (herd|maintainer|longdescription|use|upstream)* )>
<!ATTLIST pkgmetadata pkgname CDATA "">
<!-- One tag for each herd this package is assigned to. -->
@@ -18,7 +18,9 @@
<!ELEMENT longdescription (#PCDATA|pkg|cat)* >
<!-- The changelog of the package-->
- <!ELEMENT changelog (change)* >
+ <!-- Please note that #PCDATA is mentioned only for the upstream changelog
+ element, where the content is a URL. This is due to limitations of the DTD -->
+ <!ELEMENT changelog (#PCDATA|change)* >
<!-- The changelog contains various "changes"-->
<!ELEMENT change (date,(developer|version|description|file|contributor|bug)*) >
<!ELEMENT date (#PCDATA) >
@@ -44,6 +46,23 @@
<!-- name attribute holds the name of the USE flag -->
<!ATTLIST flag name CDATA #REQUIRED >
+ <!-- upstream metadata information (maintainers, upstream docs,..) -->
+ <!ELEMENT upstream (maintainer|changelog|doc|bugs-to|remote-id)* >
+ <!-- Due to the limitation of DTD this will also allow a status
+ attribute for the package maintainer element. Please note that
+ the usage of the status attribute is nevertheless _only_ allowed
+ in the upstream maintainer element. -->
+ <!ATTLIST maintainer status (active|inactive|unknown) "unknown" >
+ <!-- URL where the location of the upstream documentation can be found -->
+ <!ELEMENT doc (#PCDATA)>
+ <!ATTLIST doc lang CDATA "C" >
+ <!-- location where to report bugs
+ (may also be an email address prefixed with mailto:) -->
+ <!ELEMENT bugs-to (#PCDATA)>
+ <!-- specify a type of package identification tracker -->
+ <!ELEMENT remote-id (#PCDATA)>
+ <!ATTLIST remote-id type (freshmeat|sourceforge|cpan|vim) #REQUIRED>
+
<!-- category/package information for cross-linking in descriptions
and useflag descriptions -->
<!ELEMENT pkg (#PCDATA) >