boscolopes
November 8th, 2003, 10:43 AM
Hi,
I am facing the following problem with XSLT templates.
I would be thankful if somebody could provide the solution.
I have a template::
<xsl:template name="InboxName">
<xsl:param name="p1" select="'Inbox'"/>
< <xsl:value-of select="\$p1"/>
</xsl:template>
Now, If I do
<xsl:call-template name="InboxName">
<xsl:with-param name="p1" select="'Inbox'"/>
</xsl:call-template>
then, "Inbox" is shown properly in the output.
However if I do,
<xsl:call-template name="InboxName">
<xsl:with-param name="p1" select="Inbox"/>
</xsl:call-template>
Then "Inbox" is not shown.
Note that in <xsl:with-param name="p1" select="Inbox"/>,
the single quotes are missing around Inbox
What could cause this error?
Also if i declare a variable "abc" with value "hello" and call the template, the variable's value does not appear in the output.
<xsl:call-template name="InboxName">
<xsl:with-param name="p1" select="$abc"/>
</xsl:call-template>
TIA
--Lincoln
I am facing the following problem with XSLT templates.
I would be thankful if somebody could provide the solution.
I have a template::
<xsl:template name="InboxName">
<xsl:param name="p1" select="'Inbox'"/>
< <xsl:value-of select="\$p1"/>
</xsl:template>
Now, If I do
<xsl:call-template name="InboxName">
<xsl:with-param name="p1" select="'Inbox'"/>
</xsl:call-template>
then, "Inbox" is shown properly in the output.
However if I do,
<xsl:call-template name="InboxName">
<xsl:with-param name="p1" select="Inbox"/>
</xsl:call-template>
Then "Inbox" is not shown.
Note that in <xsl:with-param name="p1" select="Inbox"/>,
the single quotes are missing around Inbox
What could cause this error?
Also if i declare a variable "abc" with value "hello" and call the template, the variable's value does not appear in the output.
<xsl:call-template name="InboxName">
<xsl:with-param name="p1" select="$abc"/>
</xsl:call-template>
TIA
--Lincoln