hello all scuse my ignorance. i have this[1] in a hiperdom instance (partial text from hiperdom howto). but i got this[2] error when i clicked change. i know it's me not understanding XML well enough. pointers/help please p/s - maybe, the default text in a newly created hiperdom instance should be something similar to what a new dtml method/document gives now? -----8<------------- [1] <?xml version='1.0'?> <html><head><title hdom:text="title">title</title></head> <body> <h3 hdom:text="id">me h3</h3> </body></html> [2] </P> <P><STRONG>DOMException</STRONG></P> Sorry, a Zope error occurred.<p> <!-- Traceback (innermost last): File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /tmp/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: hdom) File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /tmp/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_edit) File /tmp/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_edit) File /home/kdie/Zope/lib/python/Products/HiperDom/HiperDomTemplate.py, line 177, in manage_edit (Object: hdom) File /home/kdie/Zope/lib/python/Products/HiperDom/HiperDomTemplate.py, line 322, in _updateDom (Object: hdom) File /home/kdie/Zope/lib/python/Products/HiperDom/DomWrapper.py, line 168, in todom File /usr/lib/python1.5/site-packages/xml/dom/ext/reader/PyExpat.py, line 166, in startElement File /usr/lib/python1.5/site-packages/xml/dom/Document.py, line 215, in createAttributeNS (Object: Node) DOMException: DOM Error Code 14: Namespace operation results in malformed or invalid name or name declaration. --> -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine Help me save me from myself...
On Thu, Jan 18, 2001 at 12:38:29PM +0800, Bak@kedai wrote:
hello all scuse my ignorance. i have this[1] in a hiperdom instance (partial text from hiperdom howto). but i got this[2] error when i clicked change.
i know it's me not understanding XML well enough.
There's no HiperDom HOWTO, and what little documentation there is, is outdated. Martijn upgraded HiperDom to work with the newer PyXML package, but for that you'll need proper XML namespace handling, as in (in your case) <html xmlns:hdom="uri:hiperdom">...</html>. The default text already gives you an example; if you create a template, it's filled with <EmptyTemplate xmlns:hdom="uri:hiperdom" />
p/s - maybe, the default text in a newly created hiperdom instance should be something similar to what a new dtml method/document gives now?
Hadn't thought of this, sounds like a good idea. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:lalo@hackandroll.org pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
participants (2)
-
Bak@kedai -
Lalo Martins