Render the markup for
a <!DOCTYPE>
declaration.
Decode Behavior
No action is required during decode for this renderer.
Encode Behavior
Output an XML Doctype using the provided attributes. Output the
literal text <!DOCTYPE
. The "rootElement" attribute is
required and must be rendered next. If the "public" attribute is
defined, render the literal text PUBLIC
then render the
value of the attribute inside double quotes. If the "system" attribute
is defined, render it next, inside double quotes. Close the doctype
declaration with the literal text >
.
This renderer is not responsible for rendering its children.
Attributes with a pass-through
value of
true
are not interpreted by the renderer and are passed
straight through to the rendered markup, without checking for validity. Attributes with a
pass-through
value of false
are interpreted
by the renderer, and may or may not be checked for validity by the renderer.
Attributes | |||||
attribute-name | pass-through | attribute-class | description | default-value | |
---|---|---|---|---|---|
public
|
true | java.lang.String |
Will be output as the public part of the DOCTYPE
|
undefined | |
rootElement
|
true | java.lang.String |
The root XML element
|
undefined | |
system
|
true | java.lang.String |
Will be output as the system part of the DOCTYPE
|
undefined |