php-src/pear/package.dtd

111 lines
3.4 KiB
DTD
Raw Normal View History

<!--
2004-01-26 07:36:28 +08:00
$Id: package.dtd,v 1.35 2004-01-25 23:36:28 pajoye Exp $
2002-12-28 01:19:31 +08:00
This is the PEAR package description, version 1.0.
It should be used with the informal public identifier:
2002-12-28 01:19:31 +08:00
"-//PHP Group//DTD PEAR Package 1.0//EN//XML"
2004-01-26 07:36:28 +08:00
Copyright (c) 1997-2004 The PHP Group
This source file is subject to version 3.0 of the PHP license,
that is bundled with this package in the file LICENSE, and is
available at through the world-wide-web at
http://www.php.net/license/3_0.txt.
If you did not receive a copy of the PHP license and are unable to
obtain it through the world-wide-web, please send a note to
license@php.net so we can mail you a copy immediately.
Authors:
2003-03-18 20:06:09 +08:00
Stig S. Bakken <ssb@php.net>
-->
2002-01-30 17:23:34 +08:00
<!ELEMENT package (name|summary|description|license|maintainers|release|changelog)+>
2002-01-30 17:23:34 +08:00
<!ATTLIST package type (source|binary|empty) "empty"
version CDATA #REQUIRED>
<!ELEMENT name (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT summary (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT description (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT license (#PCDATA)>
<!ELEMENT maintainers (maintainer)+>
2002-01-30 17:23:34 +08:00
<!ELEMENT maintainer (user|role|name|email)+>
2002-01-30 17:23:34 +08:00
<!ELEMENT user (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT role (#PCDATA)>
<!ELEMENT email (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT changelog (release)+>
<!ELEMENT release (version|license|state|date|notes|filelist|deps|provides|script|configureoptions)+>
2002-01-30 17:23:34 +08:00
<!ELEMENT version (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT state (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT date (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT notes (#PCDATA)>
2002-01-30 17:23:34 +08:00
<!ELEMENT filelist (dir|file)+>
2002-01-30 17:23:34 +08:00
<!ELEMENT dir (dir|file)+>
2002-02-02 08:06:44 +08:00
<!ATTLIST dir name CDATA #REQUIRED
baseinstalldir CDATA #IMPLIED>
2002-01-30 17:23:34 +08:00
<!ELEMENT file (replace*)>
<!ATTLIST file role (php|ext|src|test|doc|data|script) 'php'
2002-02-02 08:06:44 +08:00
debug (na|on|off) 'na'
zts (na|on|off) 'na'
phpapi NUMBER #IMPLIED
zendapi NUMBER #IMPLIED
2002-02-02 08:06:44 +08:00
format CDATA #IMPLIED
baseinstalldir CDATA #IMPLIED
platform CDATA #IMPLIED
md5sum CDATA #IMPLIED
name CDATA #REQUIRED
install-as CDATA #IMPLIED>
<!ELEMENT replace EMPTY>
<!ATTLIST replace from CDATA #REQUIRED
to CDATA #REQUIRED
type CDATA #REQUIRED>
2002-01-30 17:23:34 +08:00
<!ELEMENT deps (dep)+>
2002-01-30 17:23:34 +08:00
<!ELEMENT dep (#PCDATA)>
<!ATTLIST dep
2003-06-05 15:01:20 +08:00
optional (yes|no) 'no'
type (pkg|ext|php|prog|ldlib|rtlib|os|websrv|sapi|zend) #REQUIRED
rel (has|eq|lt|le|gt|ge) 'has'
version CDATA #IMPLIED>
<!ELEMENT provides (#PCDATA)>
<!ATTLIST provides
type (ext|prog|class|function|feature|api) #REQUIRED
name CDATA #REQUIRED
extends CDATA #IMPLIED>
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
phase (pre-install |post-install |
pre-uninstall|post-uninstall|
pre-build |post-build |
pre-setup |post-setup ) #REQUIRED>
<!ELEMENT configureoptions (configureoption*)>
<!ELEMENT configureoption EMPTY>
<!ATTLIST configureoption
name CDATA #REQUIRED
default CDATA #IMPLIED
prompt CDATA #REQUIRED>