<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.23.4">
</HEAD>
<BODY>
On Tue, 2008-07-15 at 12:16 +0200, Stefan Behnel wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Mike MacCana wrote:
</PRE>
</BLOCKQUOTE>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
&gt; - I haven't been able to find any examples of setting a namespace to
&gt; apply to an attribute - so that the stylename attribute has the text
&gt; namespace (as OpenDocument seems to do things).
&gt;
&gt; - Additionally If I set the attribute to be style-name instead of
&gt; stylename, I get
&gt; 'SyntaxError: keyword can't be an expression'.
&gt; OK, I understand that. But I when I quote this so the dash comes out
&gt; literally, lxml complains about invalid syntax.

Same solution for both:

    ns = &quot;{...}&quot;
    Element(ns+&quot;p&quot;, attrib={ns+&quot;style-name&quot; : &quot;Standard&quot;})

(and I admit that that's missing from the tutorial)

Stefan
</PRE>
</BLOCKQUOTE>
<BR>
Thanks muchly Stefan. When I get my OpenDocument test running I'll pop the code back to the list.
</BODY>
</HTML>