annotate man/psgml-api.texi @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @c %**start of header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @setfilename psgml-api.info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 @settitle psgml-api
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 @c @setchapternewpage odd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 @c %**end of header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 @c $Id: psgml-api.texi,v 1.1.1.1 1996/12/18 03:36:11 steve Exp $
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 @ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 Documentation for PSGML, a major mode for SGML.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 Copyright 1994 Lennart Staflin
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 Permission is granted to make and distribute verbatim
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 copies of this manual provided the copyright notice and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 this permission notice are preserved on all copies.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 @ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Permission is granted to process this file through TeX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 and print the results, provided the printed document
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 carries a copying permission notice identical to this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 one except for the removal of this paragraph (this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 paragraph not being relevant to the printed manual).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 @end ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 Permission is granted to copy and distribute modified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 versions of this manual under the conditions for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 verbatim copying, and provided that the entire
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 resulting derived work is distributed under the terms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 of a permission notice identical to this one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 Permission is granted to copy and distribute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 translations of this manual into another language,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 under the above conditions for modified versions,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 except that this permission notice may be stated in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 translation approved by the Free Software Foundation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 @end ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 @titlepage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 @title Internals of PSGML
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 @author Lennart Staflin
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 @c The following two commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 @c start the copyright page.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 @page
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 @vskip 0pt plus 1filll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 Copyright @copyright{} 1994 Lennart Staflin
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 @c Published by ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 Permission is granted to make and distribute verbatim
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 copies of this manual provided the copyright notice and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 this permission notice are preserved on all copies.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 @ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 Permission is granted to process this file through TeX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 and print the results, provided the printed document
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 carries a copying permission notice identical to this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 one except for the removal of this paragraph (this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 paragraph not being relevant to the printed manual).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 @end ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 Permission is granted to copy and distribute modified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 versions of this manual under the conditions for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 verbatim copying, and provided that the entire
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 resulting derived work is distributed under the terms
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 of a permission notice identical to this one.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 Permission is granted to copy and distribute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 translations of this manual into another language,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 under the above conditions for modified versions,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 except that this permission notice may be stated in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 translation approved by the Free Software Foundation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 @end titlepage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 @node Top, Types, (dir), (dir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 @ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 @top PSGML Internals
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 @end ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 * Types:: Types and operations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 * Hooks:: Hooks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 * Implementation:: Implementation notes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 * Index:: Index
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 --- The Detailed Node Listing ---
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 Types and operations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 * element:: The element structure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 * attribute:: Attribute Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 * parser state:: Parser state
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 * DTD:: DTD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 * entities:: Entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 @node Types, Hooks, Top, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 @chapter Types and operations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 NOTE:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 Names of element types, attributes and entities should be treated as far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 as possible as a real type. In versions prior to 1.0 names are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 represented by lisp symbols but in 1.0 they are strings.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 Perhaps I should make a @file{psgml-api.el} that defines some functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 to deal with names. Then it would be possible to write code that works
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 in both 0.4 and 1.0.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 * element:: The element structure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 * attribute:: Attribute Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 * parser state:: Parser state
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 * DTD:: DTD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 * entities:: Entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 @node element, attribute, Types, Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 @section The element structure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 @deftp {Data type} element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 The basic data type representing the element structure is the Element (this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 happens to be a node in the parse tree).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 @subsection Mapping buffer positions to elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 @defun sgml-find-context-of pos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 Return the element current at buffer position @var{pos}. If @var{pos}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 is in markup, @code{sgml-markup-type} will be a symbol identifying the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 markup type. It will be @code{nil} if @var{pos} is outside markup.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 @defun sgml-find-element-of pos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 Return the element containing the character at buffer position @var{pos}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 @subsection Functions operating on elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 @defun sgml-element-name element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 Returns the name of the element. (obsolete)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 @defun sgml-element-gi element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 Return the general identifier (string) of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 @defun sgml-element-level element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 Returns the level of @var{element} in the element structure. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 document element is level 1.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 @subsubsection Structure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 @defun sgml-top-element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 Return the document element.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 @defun sgml-off-top-p element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 True if @var{element} is the pseudo element above the document element.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 These functions return other related elements, or possibly @code{nil}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 @defun sgml-element-content element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 First element in content of @var{element}, or nil.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 @defun sgml-element-next element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 Next sibling of @var{element}. To loop thru all sub elements of an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 element, @code{el}, You could do like this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 @lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (let ((c (sgml-element-content el)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (while c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 <<Do something with c>>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (setq c (sgml-element-next c))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 @end lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 @defun sgml-element-parent element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 Parent of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 @subsubsection Tags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 @defun sgml-element-stag-optional element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 Return true if the start-tag of @var{element} is omissible.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 @defun sgml-element-etag-optional element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 Return true if the end-tag of @var{element} is omissible.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 @defun sgml-element-stag-len element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 Return the length of the start-tag of @var{element}. If the start-tag
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 has been omitted the length is 0.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 @defun sgml-element-etag-len element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 Return the length of the end-tag of @var{element}. If the end-tag
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 has been omitted the length is 0.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 @defun sgml-element-net-enabled element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 Return true, if @var{element} or some parent of the element has null end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 tag (NET) enabled. Return @code{t}, if it is @var{element} that has NET
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 enabled.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 @subsubsection Positions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 These functions relates an element to positions in the buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 @defun sgml-element-start element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 Position of start of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 @defun sgml-element-end element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 Position after @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 @defun sgml-element-stag-end element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 Position after start-tag of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 @defun sgml-element-etag-start element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 Position before end-tag of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 @subsubsection Attributes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 @defun sgml-element-attlist element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 Return the attribute declaration list for @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 @defun sgml-element-attribute-specification-list element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 Return the attribute specification list for @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 @defun sgml-element-attval element attribute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 Return the value of the @var{attribute} in @var{element}, string or nil.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 @subsubsection Misc technical
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 @defun sgml-element-data-p element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 True if @var{element} can contain data characters.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 @defun sgml-element-mixed element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 True if @var{element} has mixed content.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 @defun sgml-element-eltype element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 @defun sgml-element-empty element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 True if @var{element} is empty.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 @defun sgml-element-excludes element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 @defun sgml-element-includes element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 @defun sgml-element-model element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 Declared content or content model of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 @defun sgml-element-context-string element
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 Return string describing context of @var{element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 @c ----------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 @node attribute, parser state, element, Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 @section Attribute Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 Basic types for attributes are names and values. (See note about names
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 in @ref{Types}.) And attribute values (attval) by lisp strings.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 @subsection Attribute Declaration List Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 @deftp {Data type} attlist attdecl*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 This is the result of the ATTLIST declarations in the DTD.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 All attribute declarations for an element is the elements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 attlist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 @defun sgml-lookup-attdecl name attlist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 Return attribute declaration (attdecl) for attribute @var{name} in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 attribute declaration list @var{attlist}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 @defun sgml-attribute-with-declared-value attlist declared-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 Find the first attribute in @var{attlist} that has @var{declared-value}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 @subsection Attribute Declaration Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 @deftp {Data type} attdecl name declared-value default-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 This is the representation of an individual attribute declaration
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 contained in an ATTLIST declaration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 @defun sgml-make-attdecl name declared-value default-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 Produces an attdecl.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 @defun sgml-attdecl-name attdecl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 Returns the name of an attribute declaration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 @defun sgml-attdecl-declared-value attdecl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 Returns the declared-value of attribute declaration @var{attdecl}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 @defun sgml-attdecl-default-value: attdecl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 Returns the default-value of attribute declaration @var{attdecl}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 @subsection Declared Value Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 @deftp {Data type} declared-value (token-group | notation | simple)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 A declared value of an SGML attribute can be of different kinds. If the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 declared value is a token group there is an associated list of name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 tokens. For notation there is also a list of associated names, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 allowed notation names. The other declared values are represented by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 type name as a lisp symbol.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 @c token-group = nametoken+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 @c notation = nametoken+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 @c simple = symbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 @defun sgml-declared-value-token-group declared-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 Return the name token group for the @var{declared-value}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 This applies to name token groups. For other declared values nil is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 returned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 @defun sgml-declared-value-notation declared-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 Return the list of notation names for the @var{declared-value}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 This applies to notation declared value. For other declared values
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 nil is returned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 @subsection Default Value Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 @deftp {Data type} default-value (required | implied | conref | specified )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 @c implied, conref = constant symbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 @c specified = (fixed | normal)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 @c fixed, normal = attval
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 There are several kinds of default values. The @var{required},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 @var{implied}, and @var{conref} has no associated information. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 @var{specified} have an associated attribute value and can be either
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 @code{fixed} or @code{normal}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 @defun sgml-make-default-value type &optional attval
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 @defun sgml-default-value-attval default-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 Return the actual default value of the declared @var{default-value}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 The actual value is a string. Return @code{nil} if no actual value.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 @defun sgml-default-value-type-p type default-value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 Return true if @var{default-value} is of @var{type}. Where @var{type}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 is a symbol, one of @code{required}, @code{implied}, @code{conref}, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 @code{fixed}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 @subsection Attribute Specification Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 @deftp {Data type} attspec name attval
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 This is the result of parsing an attribute specification.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 @defun sgml-make-attspec name attval
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 Create an attspec from @var{name} and @var{attval}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 Special case, if @var{attval} is @code{nil} this is an implied attribute.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 @defun sgml-attspec-name attspec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 Return the name of the attribute specified by @var{attspec}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 @defun sgml-attspec-attval attspec
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 Return the value (attval) of attribute specification @var{attspec}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 If @var{attspec} is @code{nil}, @code{nil} is returned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 @subsection Attribute Specification List Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 @deftp {Data type} asl attspec*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 This is the result of parsing an attribute specification list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 @defun sgml-lookup-attspec name asl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 Return the attribute specification for attribute with @var{name} in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 attribute specification list @var{asl}. If the attribute is unspecified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 @code{nil} is returned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 @c ------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 @node parser state, DTD, attribute, Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 @section Parser state
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 The state of the parser that needs to be kept between commands are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434 stored in a buffer local variable. Some global variables are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 initialised from this variable when parsing starts.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 @defvar sgml-buffer-parse-state
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 The state of the parser that is kept between commands. The value of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 this variable is of type pstate.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 @deftp {Data type} pstate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 The parser state.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 @defun sgml-pstate-dtd pstate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 The document type information (dtd) for the parser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 @c ------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 @node DTD, entities, parser state, Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 @section DTD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 @deftp {Data type} dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 Represents what PSGML knows about the DTD.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460 @defun sgml-dtd-doctype dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 The document type name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464 @defun sgml-dtd-eltypes dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 The table of element types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 @defun sgml-dtd-entities dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 The table of declared general entities (entity-table).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 @defun sgml-dtd-parameters dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 The table of declared parameter entities (entity-table).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 @defun sgml-dtd-shortmaps dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 The list of short reference maps.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 @defun sgml-dtd-notations dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 Not yet implemented.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 @c ------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 @node entities, , DTD, Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 @section Entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 @deftp {Data type} entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 An entity has the following properties:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 @table @var
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 @item name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 The name of the entity (a string). This is either the name of a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 declared entity (general or parameter) or the doctype name if it is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 implicit entity referred to by the doctype declaration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 @item type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 This is a symbol. It is @code{text} if it is a text entity, other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 values are @code{cdata}, @code{ndata}, @code{sdata}, @code{sgml} or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 @code{dtd}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 @item text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 This is the text of the entity, either a string or an external
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 identifier.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 Operations on entities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 @defun sgml-make-entity name type text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 Create an entity.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 @defun sgml-entity-name entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 The name of the entity.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 @defun sgml-entity-type entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 The type of the entity.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 @defun sgml-entity-text entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 The text of the entity.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 @defun sgml-entity-insert-text entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 Insert the text of the entity into the current buffer at point.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 @defun sgml-entity-data-p entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 True if @var{entity} is a data entity, that is not of type @code{text}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 @deftp {Data type} entity-table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 A table of entities that can be referenced by entity name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 @defun sgml-lookup-entity name entity-table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 The entity with named @var{name} in the table @var{entity-table}. If no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 such entity exists, @code{nil} is returned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 @defun sgml-entity-declare name entity-table type text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 Create an entity from @var{name}, @var{type} and @var{text}; and enter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 the entity into the table @var{entity-table}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 @defun sgml-entity-completion-table entity-table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 Make a completion table from the @var{entity-table}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 @defun sgml-map-entities fn entity-table &optional collect
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 Apply the function @var{fn} to all entities in @var{entity-table}. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 @var{collect} is @code{t}, the results of the applications are collected
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 in a list and returned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 @c ------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 @node Hooks, Implementation, Types, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 @chapter Hooks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 @defvar sgml-open-element-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 The hook run by @code{sgml-open-element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 Theses functions are called with two arguments, the first argument is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 the opened element and the second argument is the attribute specification
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 list. It is probably best not to refer to the content or the end-tag of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 the element.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 @defvar sgml-close-element-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 The hook run by @code{sgml-close-element}. These functions are invoked
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 with @code{sgml-current-tree} bound to the element just parsed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 @defvar sgml-doctype-parsed-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 This hook is called after the doctype has been parsed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 It can be used to load any additional information into the DTD structure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 @defvar sgml-sysid-resolve-functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 This variable should contain a list of functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 Each function should take one argument, the system identifier of an entity.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 If the function can handle that identifier, it should insert the text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 of the entity into the current buffer at point and return t. If the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 system identifier is not handled the function should return nil.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 @end defvar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 @c ------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597 @node Implementation, Index, Hooks, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 @chapter Implementation notes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 @section Data Types and Operations
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 @subsection Element Type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 @deftp {Data type} eltype
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 Data type representing the information about an element type. An
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 @code{eltype} has information from @samp{ELEMENT} and @samp{ATTLIST}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 declarations. It can also store data for the application.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 The element types are symbols in a special oblist. The oblist is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 table of element types. The symbols name is the GI, its value is used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 to store three flags and the function definition holds the content
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 model. Other information about the element type is stored on the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 property list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 @defun sgml-eltype-name et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 The name (a string) of the element type @var{et}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 @defun sgml-eltype-appdata et prop
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 Get application data from element type @var{et} with name @var{prop}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 @var{prop} should be a symbol, reserved names are: flags, model, attlist,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 includes, excludes, conref-regexp, mixed, stag-optional, etag-optional.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 This function can be used as a place in @code{setf}, @code{push} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 other functions from the CL library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 @defun sgml-eltype-all-miscdata eltype
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 A list of all data properties for eltype except for flags, model,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 includes and excludes. This function filters the property list of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 @var{eltype}. Used when saving the parsed DTD.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 @defun sgml-eltype-set-all-miscdata eltype miscdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 Append the @var{miscdata} data properties to the properties of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 @var{eltype}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 @defun sgml-eltype-attlist et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 The attribute specification list for the element type @var{et}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 @defun sgml-eltype-completion-table eltypes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 Make a completion table from a list, @var{eltypes}, of element types.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 @defun sgml-eltype-stag-optional et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 True if the element type @var{et} has optional start-tag.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 @defun sgml-eltype-etag-optional et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 True if the element type @var{et} has optional end-tag.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 @defun sgml-eltype-excludes et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 The list of excluded element types for element type @var{et}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 @defun sgml-eltype-includes et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 The list of included element types for element type @var{et}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 @defun sgml-eltype-flags et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 Contains three flags as a number. The flags are stag-optional,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 etag-optional and mixed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 @defun sgml-eltype-mixed et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 True if element type @var{et} has mixed content.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 @defun sgml-eltype-model et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 The content model of element type @var{et}. The content model is either
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 the start state in the DFA for the content model or a symbol identifying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 a declared content.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 @defun sgml-eltype-shortmap et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 The name of the shortmap associated with element type @var{et}. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 can also be the symbol @code{empty} (if declared with a @samp{<!USEMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 gi #EMPTY>} or @code{nil} (if no associated map).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 @defun sgml-eltype-token et
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 Return a token for the element type @var{et}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 @defun sgml-eltypes-in-state state tree
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 List of element types valid in @var{state} and @var{tree}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 @subsection DTD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 The DTD data type is realised as a lisp vector using @code{defstruct}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 There are two additional fields for internal use: dependencies and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 merged.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 @defun sgml-dtd-dependencies dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 The list of files used to create this DTD.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 @defun sgml-dtd-merged dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 The pair (@var{file} . @var{merged-dtd}), if the DTD has had a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 precompiled dtd merged into it. @var{File} is the file containing the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 compiled DTD and @var{merged-dtd} is the DTD loaded from that file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 @subsection Element and Tree
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 @deftp {Data Type} tree
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 This is the data type for the nodes in the tree build by the parser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 @end deftp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 The tree nodes are represented as lisp vectors, using @code{defstruct}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 to define basic operations.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 The Element data type is a view of the tree built by the parser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 @section Parsing model
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 PSGML uses finite state machines and a stack to parse SGML. Every
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 element type has an associated DFA (deterministic finite automaton).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 This DFA is constructed from the content model.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 SGML restricts the allowed content models in such a way that it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 easy to directly construct a DFA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 To be able to determine when a start-tag can be omitted the DFA need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 contain some more information than the traditional DFA. In PSGML a DFA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 has a set of states and two sets of edges. The edges are associated
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 with tokens (corresponding to SGML's primitive content tokens). I call
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 these moves. One set of moves, the @dfn{optional moves}, represents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 optional tokens. I call the other set @dfn{required moves}. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 correspondence to SGML definitions are: if there is precisely one
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 required move from one state, then the associated token is required.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 A state is final if there is not required move from that state.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 The SGML construct @samp{(...&...&...)} (@dfn{AND-group}) is another
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 problem. There is a simple translation to sequence- and or-connectors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 For example @samp{(a & b & c)} is can be translated to:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 ((a, b, c) | (a, c, b) |
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 (b, a, c) | (b, c, a) |
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 (c, a, b) | (c, b, a))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 But this grows too fast to be of direct practical use. PSGML represents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 an AND-group with one DFA for every (SGML) token in the group. During
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 parsing of an AND-group there is a pointer to a state in one of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 group's DFAs, and a list of the DFAs for the tokens not yet satisfied.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 Most of this is hidden by the primitives for the state type. The parser
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 only sees states in a DFA and moves.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 @section Entity manager
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 @defun sgml-push-to-entity entity &optional ref-start type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 Set current buffer to a buffer containing the entity @var{entity}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 @var{entity} can also be a file name. Optional argument @var{ref-start}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 should be the start point of the entity reference. Optional argument
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 @var{type}, overrides the entity type in entity look up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 @defun sgml-pop-entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 Should be called after a @code{sgml-push-to-entity} (or similar).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 Restore the current buffer to the buffer that was current when the push
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 to this buffer was made.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 @defun sgml-push-to-string string
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 Create an entity from @var{string} and push it on the top of the entity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 stack. After this the current buffer will be a scratch buffer containing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 the text of the new entity with point at the first character.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 Use @code{sgml-pop-entity} to exit from this buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 @c @section Lexical
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 @section Parser functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 @defun sgml-need-dtd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 This makes sure that the buffer has a DTD and set global variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 needed by parsing routines. One global variable is @code{sgml-dtd-info}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 which contain the DTD (type dtd).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 @defun sgml-parse-to goal &optional extra-cond quiet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 This is the low level interface to the parser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 Parse until (at least) @var{goal}, a buffer position. Optional argument
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 @var{extra-cond} should be a function. This function is called in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 parser loop, and the loop is exited if the function returns t. If third
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 argument @var{quit} is non-@code{nil}, no "@samp{Parsing...}" message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 will be displayed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 @defun sgml-reparse-buffer shortref-fun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 Reparse the buffer and let @var{shortref-fun} take care of short
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 references. @var{shortref-fun} is called with the entity as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 argument and @code{sgml-markup-start} pointing to start of short
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 reference and point pointing to the end.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 @end defun
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 @section Saved DTD Format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 @format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 File = Comment,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 File version,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 S-expression --dependencies--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 Parameter entites,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 Document type name,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 Elements,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 General entities,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 S-expression --shortref maps--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 S-expression --notations--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830 Elements = Counted Sequence of S-expression --element type name--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 Counted Sequence of Element type description
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 File version = "(sgml-saved-dtd-version 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 Comment = (";",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 (CASE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 OF [0-9]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 OF [11-255])*,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 [10] --end of line marker--)*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 Element type description = S-expression --Misc info--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 CASE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 OF [0-7] --Flags 1:stag-opt, 2:etag-opt, 4:mixed--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 Content specification,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 Token list --includes--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 Token list --excludes--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 OF [128] --Flag undefined element--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 Content specification = CASE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 OF [0] --cdata--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 OF [1] --rcdata--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 OF [2] --empty--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 OF [3] --any--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 OF [4] --undefined--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 OF [128] --model follows--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 Model --nodes in the finite state automaton--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 Model = Counted Sequence of Node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 Node = CASE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 OF Normal State
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 OF And Node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 Normal State = Moves --moves for optional tokens--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 Moves --moves for required tokens--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 Moves = Counted Sequence of (Token,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 OCTET --state #--)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 And Node = [255] --signals an AND node--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 Number --next state (node number)--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 Counted Sequence of Model --set of models--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 Token = Number --index in list of elements--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877 Number = CASE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 OF [0-250] --Small number 0--250--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 OF [251-255] --Big number, first octet--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 OCTET --Big number, second octet--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 Token list = Counted Sequence of Token
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 Parameter entites = S-expression --internal representation of parameter entities--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 General entities = S-expression --internal representation of general entities--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 Document type name = S-expression --name of document type as a string--
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 S-expression = OTHER
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 Counted Sequence = Number_a --length of sequence--,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 (ARG_1)^a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 @end format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 @c ------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 @node Index, , Implementation, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 @comment node-name, next, previous, up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 @chapter Index
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 Types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 @printindex tp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 @bye