Re: [emacs-nxml-mode] XHTML and ZPT (tal & metal)
- Rakotomandimby Mihamina wrote:
> Hi,The problem is that nxml's schema validation doesn't know about all
> I have been recommended by my workmates to use nxml for editing XHTML
> and ZPT
> The nxml-mode displays the code to be "invalid" for ZPT documents and
> my basic HTML code.
> I put the mess in a ZPT document and would like to indent my code, like
> this, for example:
> What are the tips and tricks to do so?
> Is is a big problem that nxml finds my code "invalid"?
> (it displays "nXML Invalid" in the major mode...)
the extra tal:something and <tal:block>-like elements. It might be
worthwile to make your own special rng-schema for these kind of
documents that mix xhtml with tal: and metal:.
On the other hand, I use nxml to edit ZPT files every day and I'm not
that bothered by the "hey, I don't know this attribute" warnings. Nxml
*does* detect non-matching closing tags or other xml-related errors just
fine. And it indents the code like a charm.
So: as long as you use your tal:attributes and your tal:condition in the
right places, nxml-mode is an excellent choice :-)
Reinout van Rees r.van.rees@...
"Military engineers build missiles. Civil engineers build targets."