1 Nov
2012
1 Nov
'12
1:35 p.m.
Eric Levy, 28.10.2012 03:58:
I wish for two separate ElementTree objects to serve as input for the same XSLT transformation.
As I understand, XSLT in general supports secondary input documents by way of the XPath doc() function. Normally the function represents an XML tree from a named file. It appears that lxml supports custom resolvers in case the document is not simply a file on disk as named. Further, it appears that a custom resolver may resolve a URI as string, another filename, or a file object.
What about the case of the secondary document being an ElementTree in memory?
I don't see a way to do that. libxml2 expects an xmlParserInput struct as result: http://xmlsoft.org/html/libxml-tree.html#xmlParserInput Stefan