Re: [xsl] Java XSLT transformers and document('') problem

Subject: Re: [xsl] Java XSLT transformers and document('') problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 8 Sep 2008 10:15:27 +0100
> Is there in XSLT 2.0 any alternatives to this technique?

It's a very odd thing to do, even in XSl 1.0. You say

> I use document('') only to perform call-template by it's name,

but the behaviour is very different to that of call-template, any xsl
instructions in the matched template will be treated as data rather than
executed.

In the example that you gave there were no xsl instructions inside the
template so you could just use a variable and don't need a template at
all. Does your actual use case have xsl instructions inside the
template, perhaps the example you posted was over-simplified?

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread