may be someone can get me out.
I am returning an etree from a Python function in XPath.
But it does not seem to work stepping through the result
as in <xsl:for-each select="myfunction()/*">...</xsl:for-each>
where <xsl:for-each select="*">...</xsl:for-each>works fine 
for the current node. What do I do wrong. Should the function
answer something different from an etree, as in:

def myfunction(dummy, *args):
... # create etree from args
return etree

Kind regards,
Petr van Blokland

Petr van Blokland
buro@petr.com | www.petr.com | +31 15 219 10 40