summaryrefslogtreecommitdiffstats
path: root/Doc/sgml/python.dtd
blob: 51a88cee6feef79cb1b6e2ca57a5c071ccd7ffea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!ENTITY % common.att "
	  id	ID	#IMPLIED
	  role	NMTOKEN	#IMPLIED">

<!ENTITY % descriptor.class "cfuncdesc | cvardesc | ctypedesc |
                             classdesc | excdesc | funcdesc | datadesc |
                             memberdesc | methoddesc | opcodedesc">

<!-- include the OASIS Exchange Table Model -->
<!ENTITY oasis-tables.mod
	  PUBLIC "-//OASIS//DTD Exchange Table Model 19960430//EN">
&oasis-tables.mod;

<!-- define the &version; general entity -->
<!ENTITY python-version.ent
	  PUBLIC "+//IDN python.org//ENTITIES Python Version//EN">
&python-version.ent;

<!ELEMENT input - - EMPTY>
<!ATTLIST input
	  %common.att;
          xml:link #FIXED "simple"
          show CDATA "embed"
          embed CDATA "auto"
          source CDATA #REQUIRED>

<!ELEMENT (function|constant) - - (#PCDATA)>
<!ATTLIST (function|constant)
	  %common.att;
	  index (index|noindex) noindex
	  module CDATA #IMPLIED>

<!ELEMENT method - - (#PCDATA)>
<!ATTLIST method
	  %common.att;
	  index (index|noindex) noindex
	  module CDATA #IMPLIED
	  class CDATA #IMPLIED>

<!ELEMENT module - - (#PCDATA)>
<!ATTLIST module
	  %common.att;
	  link (link|nolink) nolink
	  package CDATA #IMPLIED>

<!ELEMENT signature - - (name, super*, args?)>
<!ELEMENT name      - - (#PCDATA)>
<!ELEMENT super     - - (#PCDATA)>
<!ELEMENT args      - - (#PCDATA)>

<!ELEMENT %descriptor.class; - - (sig+, description)>
<!ELEMENT description        - - (%para.mix;)>