Loading ...
Sorry, an error occurred while loading the content.

1778Re: [emacs-nxml-mode] Genshi and nxml-mode

Expand Messages
  • Florent Georges
    Feb 7, 2008
      "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
    • Show all 4 messages in this topic