hober / html5-el

HTML5 and XHTML5 tools in Emacs Lisp

This URL has Read+Write access

name age message
file .gitignore Sun Jul 05 10:50:07 -0700 2009 Added .gitignore. [hober]
file LICENSE Sun Jul 05 22:05:43 -0700 2009 html5-ncr.el construction, added licensing info... [hober]
file Makefile Sun Jul 05 22:05:43 -0700 2009 html5-ncr.el construction, added licensing info... [hober]
file README.markdown Mon Jul 06 08:05:08 -0700 2009 fix instructions for fetching whattf relaxng sc... [hober]
file html5-ncr.el Sun Jul 05 22:05:43 -0700 2009 html5-ncr.el construction, added licensing info... [hober]
file schemas.xml Sun Jul 05 22:05:43 -0700 2009 html5-ncr.el construction, added licensing info... [hober]
directory tools/ Sun Jul 05 22:05:43 -0700 2009 html5-ncr.el construction, added licensing info... [hober]
file whattf-dt.el Sat Jul 04 13:06:28 -0700 2009 Initial commit. [hober]
README.markdown

This project provides the ability to use nxml-mode to edit XHTML5 documents with validation. First, you'll need to fetch the RELAX NG schema from the WHAT Task Force subversion repository; a simple make relaxng in this directory should do the trick.

Next, you'll need to add this directory to your load-path. Let's assume you've placed it in ~/code/html5-el/.

(add-to-list 'load-path "~/code/html5-el/")

Finally, wire this stuff into nxml-mode like so, altering the path to schemas.xml appropriately.

(eval-after-load "rng-loc"
  '(add-to-list 'rng-schema-locating-files "~/code/html5-el/schemas.xml"))

(require 'whattf-dt)