> From: Carl Youngblood [mailto:carl / ycs.biz]
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>
Amrita uses html-parser by default, which I believe doesn't handle
namespaces at all.

The easiest possible workaround is to run with REXML as the parser. Just set
TemplateText#xml => true.

Sample is below:
  require "amrita/template"
  include Amrita

  tmpl_text = <<-END
  <?xml version="1.0"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
      <title>xhtml sample</title>
  </head>
  </html>
     END

  data = {}

  tmpl = TemplateText.new tmpl_text
  tmpl.prettyprint = true
   tmpl.xml = true # use REXML parser
  tmpl.asxml = true
  tmpl.expand(STDOUT, data)