Hi Ryan,
Please make sure your replies go the list.
This creates a result tree fragment:
<xsl:variable name="foo">foo</xsl:variable>
This creates a string:
<xsl:variable name="foo" select="'foo'" />
The latter is more efficient. The same holds true for xsl:with-param and
xsl:param.
Hope that helps...
Dave
Ryan Sawatzky
<[EMAIL PROTECTED] To: David N
Bertoni/Cambridge/IBM <[EMAIL PROTECTED]>
ox.com> cc:
Subject: Re: XSLT Variables /
Parameters
03/26/2003 03:26
PM
Hi Dave,
Thanks for the quick reply. It helped out quite a lot! However, I have
one more question.
David N Bertoni/Cambridge/IBM wrote:
>Then, you must set the value correctly. Since a param is an XPath
>expression, and your stylesheet is expecting a string, you need to set it
>appropriately:
>
> transformer->setStylesheetParam( "TYPE", "'Request'" );
>
>You should avoid using this form for xsl:param and xsl:variable which are
>used as strings, because it creates a result tree fragment:
>
>
What do you mean by this form? I only use the param as a string in the
style-sheet, so is there a better way to set it than doing "'Request'"
(ie without creating a tree fragment) ?
Thanks again for your help,
Ryan