annotate man/psgml-api.texi @ 169:15872534500d r20-3b11

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