Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Transformation [Thread Next] Re: TransformationTo: NULL Date: 5/15/2007 2:05:00 PM Kniffel wrote: > Works so far. > > But now I am trying to make an "<xsl:call-template>" call. > > This Example with the normal <xsl:apply-templates /> is working: Are you just experimenting with the XSLT instructions or why do you want to change the code that works to use xsl:call-template? Anyway, if you want to use named templates and xsl:call-template then you need to learn how to pass parameters so you have to define parameters in the template e.g. <xsl:template name="template-name"> <xsl:param name="param-name"/> <!-- put instructions of template here e.g. --> <xsl:value-of select="$param-name"/> </xsl:template> and then call that template passing in actual parameters e.g. <xsl:call-template name="template-name"> <xsl:with-param name="param-name" select="element-name"/> </xsl:call-template> But usually if you have xsl:apply-templates working there is no need to use named templates and parameters. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
