RE: Genshi and nxml-mode

"Klotz, Leigh" <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <E254B0A7E0268949ABFE5EA97B7D0CF404397CE3@USA7061MS01.na.xerox.net>
Lennart,

Here's my opinion:  Integrating with the XHTML RNG schema so you could
validate XHTML+Genshi documents would be difficult for two reasons, one
a bit of work and the other (I think) impossible.

1. It would need to add py:if, py:for, etc. to the content model of HTML
elements, since they can appear anywhere.

2. It would be harder still to validate the intent of the template.  For
example, with
 foo={'src': 'foo.jpg', 'alt': 'Foo' }
in the template context
  <xhtml:img py:attrs="foo" />
will produce
  <xhtml:img src='foo.jpg' alt='Foo' />
when the template is run, but the RNG validator has no way to know that;
and in fact it might not even be true that the template context contains
those values.

Leigh.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lennart Borgman
(gmail)
Sent: Wednesday, February 06, 2008 11:27 PM
To: [email protected]
Subject: [emacs-nxml-mode] Genshi and nxml-mode

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>


 


 
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.