Re: Genshi and nxml-mode
Florent Georges <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
"Lennart Borgman (gmail)" wrote:
Hi
> Can Genshi be supported by nxml-mode? Have someone already
> written support for it?
> Genshi adds an additional name space like this:
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:py="http://genshi.edgewall.org/"
> lang="en">
> ...
> </html>
It depends what you mean by 'support' and by 'adding namespace'. If
you just need an extra namespace declaration, well, that's out of the
box ;-). If you want nXML to validate elements in that namespace, then
you have to provide the appropriate schema. That is, Genshi + HTML.
From the Genshi user guide, excerpt of the ToC of "Genshi XML
Template Language":
Conditional Sections
Looping
Snippet Reuse
Variable Binding
Structure Manipulation
That sounds very like reinventing XSLT. And having a schema for such
a templating language and its 'hosted' language (in your case HTML)
sound pretty hard. Elements of the hosted language can appear
everywhere in the template language, and are not required to have a
valid content regarding their original schema.
IMHO, not feasible unless either hard schema writing or nXML
modifications. But should be an excellent exercise, in either case ;-)
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/emacs-nxml-mode/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/