
Marat Dakota, 08.11.2009 23:28:
Hi, I have a problem I couldn't find the way to solve. Sadly if it's not possible.
That's the code from XSLT extensions tutorial:
<xsl:template match="*"> <my:python-extension> <some-content /> </my:python-extension> </xsl:template>
Everything's working cool, but I need a bit more:
<xsl:template match="*"> <my:python-extension> <something><xsl:attribute name="test"><xsl:value-of select="111" /></xsl:attribute></something> </my:python-extension> </xsl:template>
Let's assume that's my execute function's signature:
execute(self, context, self_node, input_node, output_parent)
When it's started by XSLT processor, self_node contains <something> tag with <xsl:attribute> and <xsl:value-of> tags inside it. What should I do to ask XSLT processor to evaluate it?
It's funny that you found the example above but didn't make it to the text sections right below it. http://codespeak.net/lxml/extensions.html#applying-xsl-templates Stefan