You are looking at historical revision 15350 of this page. It may differ significantly from its current revision.

This is version 1.1 of the doctype extension library for Chicken Scheme.

Description

Provides XML doctypes as strings

Documentation

Exports strings corresponding to standard XML (XHTML, HTML) doctypes:

[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

Also exports a handy "ruleset" for use with sxml-transforms:

[constant] doctype-rules

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

Zbigniew

Version history

1.2
Add doctype-rules
1.1
Fix typo in html-4.01-transitional
1.0
Initial release

License

Public domain.