Hi Alain, I see the problem description a bit vague, to suggest the solution to your real problem.
Within your problem description, you mention, [to be applied when the template "addField"]. But I don't see any template with the name "addField" in your XSLT stylesheet. Are you refereeing to, "addInlineText" and not "addField"? You mention input XML as: <root/> What is the purpose of this input, and how it is meant to be used by your stylesheet? If you can post a small input XML (a small replica of the real input), and the desired output (a small replica of the real output desired), with a little bit of more clarity about the transformation required, I guess, the problem might be solvable. I would also like to mention, that any conventional two pass problem can be solved much easily with xx:node-set extension function in a single stylesheet. Xalan-J does support, xx:node-set extension function. On Tue, Sep 8, 2009 at 8:00 PM, Alain Gilbert <agilb...@taleo.com> wrote: > Hi, > > I'm using xalan-2.7.0 (the same applies to version 2.7.1) and I'd like the > transform to apply-templates while copying a set of nodes from the template > into the result document. > > I have attached the print.xsl template. Look at line 18 of print.xsl for the > template "addInlineText" declaration and at line 10 for its call. At line 21, > how to apply-templates while copying the template parameter? > > In other words, I'd like the template that match "html:p" to be applied when > the template "addField" is called with the parameter "value" with a set of > node as value. > > Is it possible to do it with XSLT 1.0? I'd like to avoid a second pass to > apply the html:* templates. > > Thanks, > Alain Gilbert -- Regards, Mukul Gandhi