Re: [xsl] Getting values from different templates

Subject: Re: [xsl] Getting values from different templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 10 Jan 2006 10:40:09 GMT
The code you posted has three parameters all with default value of ""
so when you use value-of you will get nothing unless you pass in some
values using three <xsl:with-param elements on te hxsl:call-template.

You said that you got no value displayed which presumably means that you
passed in no values for these parameters (or passed in the value "") but
sonce you didn't show any code it's impossible for anyone to say.

It may be that you have used variables with the same name in different
templates and somehow expect to see those values appear here. That never
happens: the scope of a variable declaration is the element containing
the xsl:variable binding and in particular variables 9and parameters) in
different templates are in different scopes and totally unrelated to
each other, even if they have the same name.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread