Handbook
Glossary
doctype-decl
XML data types
ยป
XML data classes
Prev:
public-id
Next:
notation-decl
Vocabulary
xml
.
data
Class description
Describes the class of document type declarations.
See also
<doctype-decl>
Definition
USING:
strings
;
IN:
xml.data
TUPLE:
doctype-decl
<
directive
{
name
string
initial:
""
}
{
external-id
maybe{
id
}
initial:
f
}
{
internal-subset
maybe{
dtd
}
initial:
f
}
;
Methods
USING:
accessors
io
kernel
xml.data
xml.writer
xml.writer.private
;
M:
doctype-decl
write-xml
?indent
"<!DOCTYPE "
write
[
name>>
write
]
[
external-id>>
[
bl
write-xml
]
when*
]
[
internal-subset>>
[
bl
write-internal-subset
]
when*
]
tri
">"
write
;