no xpath evaluation in attributes of xslt extension elements?

Hi, I'm back with another question about lxml. I am tinkering with the extension elements feature of the XSLT engine. I notice that if I try to give an XPath expression enclosed in {} as an attribute value in my own element type, the contents of the {} are not evaluated as an XPath expression, even though they would be if the element were not an extension. For example, in normal XSLT processing: <xslt:apply-templates match="foo"> <bar attrib-of-bar="{@attrib-of-foo}" /> </xslt:apply-templates> This would create a <bar/> element with the attrib-of-bar attribute set to the value of the attrib-of-foo attribute of foo. However, if <bar/> is lxml extension element, then the {} contents are not evaluated, but rather the entire attribute value is returned verbatim. Is this behavior intentional? Is there anyway around it? Sincerely, Eric Levy

Eric Levy, 29.10.2012 08:31:
Does this help? http://lxml.de/extensions.html#applying-xsl-templates Stefan

Eric Levy, 29.10.2012 08:31:
Does this help? http://lxml.de/extensions.html#applying-xsl-templates Stefan
participants (2)
-
Eric Levy
-
Stefan Behnel