Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Transformation

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent