<div class="gmail_quote">2009/7/16 Stefan Behnel <span dir="ltr">&lt;<a href="mailto:stefan_ml@behnel.de">stefan_ml@behnel.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

(skipping over your mail somewhat).</blockquote><div><br>Oh, thank you for that! =D<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Emanuele D&#39;Arrigo wrote:<br><div class="im">
&gt; I wish I could leave that to something indeed rather than having to<br>
&gt; implement it myself. Unfortunately, although my original post referred to<br>
&gt; xhtml, in practice I&#39;m not dealing with a browser nor with xhtml. Instead<br>
&gt; I&#39;m attempting to write a GUI system based on Mozilla&#39;s XUL.<br>
<br>
</div>How does that discourage CSS?</blockquote><div><br>It isn&#39;t XUL or me working on a GUI system that does. But lxml does not have an etree.CSS() function which generates a CSS transformation, does it? However, it does have an etree.XSLT() function which generates an xslt transformation. Isn&#39;t it?<br>

<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I didn&#39;t say &quot;generate&quot; them - just write them down. There&#39;s also a package<br>


called &quot;cssutils&quot; which you might (or might not) find useful for your needs.<br>
<br>
<a href="http://cthedot.de/cssutils/" target="_blank">http://cthedot.de/cssutils/</a></blockquote><div><br>Thank you for this! I did have a look and it has all sorts of nice things. Still, it doesn&#39;t seem to have functionality ordering the CSS rules according to the cascade nor there is functionality to apply all those rules at once to an xml/xhtml object. Does it?<br>

<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It&#39;s common to use both: XSLT for structural tree transformations, and CSS<br>


for applying style information. That keeps the details of content structure<br>
and visual representation somewhat separated, which tends to be a rather<br>
big advantage.<font color="#888888"></font></blockquote><div><br>Totally agree. But in my case the content structure is already separate from the visual representation. It is stored in a XUL file with no style information. Only when I apply the xsl transformations XUL content gains style (and locale, in a separate xsl transformation) information.<br>

<br>I somehow suspect I wasn&#39;t particularly clear in my explanation of the problem. Was I?<br><br>Manu<br></div></div><br>