[lxml-dev] Does lxml/libxslt support passing in nodes as xsl:param parameters?
Paul Everitt
paul at agendaless.com
Sat Jul 19 15:46:13 CEST 2008
I believe the answer is no. I can't tell if this is part of the spec,
but docs on other processors imply that you can use a node or node list
as the value of a parameter passed to a transformation.
In my use case, I'm trying to get information from the current web
request. I don't want to modify the input document (my normal way to do
this.) Thus, an XPath extension function or a document resolver will
have to serve the purpose.
This will be tricky, because I'll have to do a thread local or something
to know I'm grabbing a *particular* request.
Perhaps I need to ponder this. I must be looking at it the wrong way.
I want to make sure I don't reparse the input document (it might be
pretty big) nor the XSLT processor.
--Paul
More information about the lxml-dev
mailing list