[lxml-dev] questions about xslt with xml, where to get help?

Stefan Behnel stefan_ml at behnel.de
Thu Jul 10 10:53:16 CEST 2008


Hi,

please keep the list on CC.

Dominique.Holzwarth at ch.delarue.com wrote:
> Ok, that seems to work now :-) Thanks a lot! I indeed was wondering what
> this weird syntax a="'A'" means in the doc. Is it correct, that if I want
> to pass a complete DOM-node as xsl-param I can just write something like
> myParam="node-tag"?

That doesn't pass the node, it just passes the reference (i.e. the tag name),
which will be resolved from the XML source document that you are transforming,
in the current transformation context (i.e. from within the node you are
operating on).

I think your best bet to pass tree content is through XSLT extension elements
or XPath extension functions.

Stefan



More information about the lxml-dev mailing list