- doctype-rulesconstant
A handy ruleset for use with sxml-transforms. Rules are named like the corresponding constants -- for example, doctype-html -- and will output the HTML doctype as a string.
This ruleset contains preorder rules which should be appended/prepended to the universal-conversion-rules because they output raw text which should not be processed again. See the example below.
Note: for compatibility with doctype egg versions 2.0 and earlier, rules without the doctype- prefix are accepted as well: e.g. xhtml-1.0-strict. The only exception is html, which conflicts with the <html> tag.