You are looking at historical revision 18012 of this page. It may differ significantly from its current revision.
doctype
Provides XML doctypes as strings.
Interface
[constant] xhtml-1.0-strict[constant] html-4.01-strict
[constant] xhtml-1.0-transitional
[constant] html-4.01-transitional
[constant] xhtml-1.0-frameset
[constant] html-4.01-frameset
[constant] html-3.2
[constant] html-2.0
Strings corresponding to standard XML (XHTML, HTML) doctypes.
[constant] doctype-rulesA handy ruleset for use with sxml-transforms.
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.
Examples
#;1> (use doctype) #;2> (print xhtml-1.0-strict) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> #;3> (use sxml-transforms) #;4> (SRV:send-reply (pre-post-order `((xhtml-1.0-strict) (html (body "blah"))) (append doctype-rules universal-conversion-rules))) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body>blah</body></html>
About this egg
Author
Version history
- 1.2
- Add doctype-rules
- 1.1
- Fix typo in html-4.01-transitional
- 1.0
- Initial release
License
Public domain.