Hi all...
I'm having trouble getting parameter values into my templates.
I specify the parameter like this :
xsl:apply-templates select=profile
xsl:with-param name=customerId
1234567890
/xsl:with-param
/xsl:apply-templates
And I try to read it like this:
xsl:param
Johan wrote:
Hi all...
I'm having trouble getting parameter values into my templates.
I specify the parameter like this :
xsl:apply-templates select=profile
xsl:with-param name=customerId
1234567890
/xsl:with-param
/xsl:apply-templates
snip/
But I always get 'unknown'.
xsl:param is for specifying parameter names (and default values)
immediately following a template declaration.
Hard to tell why your example is failing as you haven't supplied a full
working example.
Once you are inside the template you treat them as normal variables.
If your example is