How to use attributes from custom namespaces

Hi,

I'd like to use Amaya to edit XHTML source that includes extra
attributes from other namspaces.  We are working on a templating
mechanism, http://dev.zope.org/Wikis/DevSite/Projects/ZPT, to
allow dynamic generation of XHTML from source that has standard
XHTML elements and extra attributes to control dynamic generation.

I give Amaya source like:

 <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      lang="en">
  <head>
    <title tal:insert="here/title">zpt demo folder</title>
  </head>
  <body>
    <h1 tal:insert="here/title">zpt demo folder</h1>
  </body>
 </html>

It complains about the tal:insert attributes, although it doesn't
mind the tal namespace declaration and even figures out that the prefix
'tal' goes with the namespace 'http://xml.zope.org/namespaces/tal'.

If I make any change to the source or save it, the tal attributes
and namespace declaration are removed. Is there a way to make Amaya
keep, but otherwise ignore the extra namespace?

If the answer involves extending Amaya, then I'll take my question
to www-amaya-dev. :)

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org

Received on Wednesday, 14 February 2001 20:05:20 UTC