hi,
<br>(hope this is the right list for my question)
<br>
<br>To set the XSL output encoding I normally use &lt;xsl:output 
encoding=&quot;...&quot;/&gt; in the stylesheet.
<br>
<br>At least in the Java based XSLT processors it is possible to set some 
attributes of xsl:output from the &quot;outside&quot; meaning when initializing or 
starting the transformation. So it is possible for example to overwrite 
any encoding specified in &lt;xsl:output... with a different encoding.
<br>
<br>Is there any way to do this with LXML?
<br>
<br>The docs only have an example to set an XSLT parameter but not an XSLT 
processing configuration like the output encoding.
<br>
<br>BTW, the example on <a class="moz-txt-link-freetext" href="http://codespeak.net/lxml/xpathxslt.html#xslt">http://codespeak.net/lxml/xpathxslt.html#xslt</a>
<br>
<br>&gt;&gt;&gt; xslt_tree = etree.XML(&#39;&#39;&#39;\
<br>... &lt;xsl:stylesheet version=&quot;1.0&quot;
<br>...     xmlns:xsl=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/XSL/Transform">&quot;http://www.w3.org/1999/XSL/Transform&quot;</a>&gt;
<br>...     &lt;xsl:template match=&quot;/&quot;&gt;
<br>...         &lt;foo&gt;&lt;xsl:value-of select=&quot;$a&quot; /&gt;&lt;/foo&gt;
<br>...     &lt;/xsl:template&gt;
<br>... &lt;/xsl:stylesheet&gt;&#39;&#39;&#39;)
<br>&gt;&gt;&gt; transform = etree.XSLT(xslt_tree)
<br>&gt;&gt;&gt; f = StringIO(&#39;&lt;a&gt;&lt;b&gt;Text&lt;/b&gt;&lt;/a&gt;&#39;)
<br>&gt;&gt;&gt; doc = etree.parse(f)
<br>
<br>seems to miss an &lt;xsl:param name=&quot;a&quot;/&gt; parameter. I have not checked if 
it works without it but I guess it would be good style to declare any 
incoming parameters if not for setting a default value, would it not?
<br>
<br>
<br>thanks for any hints,
<br>Christof
<br>