mod_xhtml 0.9 review

Download
by rbytes.net on

mod_xhtml is a namespace module for XHTML (ensure W3C Appendix C) and SSI implementation. mod_xhtml provides a namespace processor f

License: GPL (GNU General Public License)
File size: 44K
Developer: Nick Kew
0 stars award from rbytes.net

mod_xhtml is a namespace module for XHTML (ensure W3C Appendix C) and SSI implementation.

mod_xhtml provides a namespace processor for http://www.w3.org/1999/xhtml that serves to ensure XHTML meets the W3C Appendix C guidelines for compatibility with HTML browsers and the text/html MIME type. In addition, mod_xhtml implements Server Side Includes (SSI), both as Apache's comment-driven processing language and as a separate XML namespace processor.

SSI Implementation

The mod_xhtml SSI implementation is simpler than Apache's traditional mod_include, in that it decouples the task of markup parsing from SSI processing. Most importantly, as a namespace processor, it plugs directly in to general XML-based publishing systems, without the overhead of having to parse the markup twice.

mod_xhtml actually provides two ways to implement SSI:

Using traditional comments [an error occurred while processing this directive]
Using a separate namespace processor

The two are exactly equivalent and are implemented by the same code. They can be enabled separately or mixed in a single document.

Limitations

The principal limitation in mod_xhtml is in what it works on. Unlike mod_include, it requires its input to be well-formed XML, and cannot be used on HTML4 or tagsoup input.

The SSI implementation is also incomplete:

The SSI exec directive is deprecated in Apache, and not implemented in mod_xhtml. This will probably never be implemented. As in mod_include, include virtual is preferred.
Regular expressions in expression matching are not supported. This will probably be implemented sometime in future.

Requirements:
Apache 2.x
XML Namespace API (mod_publisher OR mod_xmlns)

mod_xhtml 0.9 search tags