This is the mail archive of the xsl-list@mulberrytech.com mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
When I use xsl:call-template the following XSL script does not
work. But it works when I use xsl:apply-templates ( and remove the template
"name" attribute ). I have put the apply-templates code in comments. Also the
<xsl:param passed to the template does not relect the value inside the
template.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml"/>
<xsl:template match="/"> <xsl:call-template
name="all-info">
<xsl:with-param name="network" select="CW_NetworkElement"/> </xsl:call-template> </xsl:template> <xsl:template name="all-info"
match="INSTANCE">
<xsl:param name="network" select="test"/> <xsl:value-of select="$network"/><xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet> <!-- <xsl:apply-templates
select="INSTANCE">
<xsl:with-param name="network" select="CW_NetworkElement"/> </xsl:apply-templates> -->
Thanks
Pady
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |