Hi everybody, newbie here, typing from an unusually sunny UK. <br><br>I&#39;ve been using lxml with great pleasure for a few months now and I&#39;d like to thank the main authors and the rest of the lxml community for the work that has gone into it. From my perspective it&#39;s a well done API, with many useful features and it&#39;s easy to use.<br>

<br>I was wondering if I could pick this mailing-list&#39;s collective brain as my own seems to be insufficient for the matter at hand.<br><br>Let&#39;s say I have parsed an xml document, representing xhtml data, into an ElementTree, and I have applied one or more xsl transformations to add style information to it. <br>

<br>Now, let&#39;s say I want to add a whole subtree with a top-element of class &quot;sub&quot; to it. The subtree to be added might have been partially styled already, i.e. because it comes from an xml file that has its own xml-stylesheet processing instructions. However, some styling can occurr only in the context of the whole tree, i.e. because the document-wide xsl transformation file specifically establishes that elements of class &quot;sub&quot; must have a yellow background. Furthermore, the same, xsl file asserts that if the document contains an element of class &quot;sub&quot; the document&#39;s background color must be purple rather than blue.<br>

<br>My fundamental question in this context is: how do I avoid re-applying the xsl transformation to the whole ElementTree and only apply the bits of the transformation that are necessary, due to the change in the tree?<br>

<br><br><br>a Manu typing from a now much more normal, cloudy UK - [sigh]<br><br><br><br><br>