D
David Blickstein
My XSLT stylesheet has the following top-level parmeter definition:
<xsl
aram name="MethodName">'Foobar'</xsl
aram>
Later in the stylesheet I try to base an xsl:if test on it:
<xsl:if test="normalize-space( @Method ) = normalize-space($MethodName)">
The test condition is never satisfied. Now if I substitute the value of
the parameter in:
<xsl:if test="normalize-space( @Method ) =
normalize-space('Foobar&apos
">
The condition is satisfied. (And yes, there is a Method attribute in the
document with the value "Foobar".
Now I've tried all sorts of things like using quotes versus double quotes,
leaving the quotes out of the param definition and/or surrounding the
reference with quotes, etc.
None of it works... only using the VALUE of the parameter in place of the
$MethodName reference seems to work.
What am I not doing right?
Thanks
<xsl
Later in the stylesheet I try to base an xsl:if test on it:
<xsl:if test="normalize-space( @Method ) = normalize-space($MethodName)">
The test condition is never satisfied. Now if I substitute the value of
the parameter in:
<xsl:if test="normalize-space( @Method ) =
normalize-space('Foobar&apos
The condition is satisfied. (And yes, there is a Method attribute in the
document with the value "Foobar".
Now I've tried all sorts of things like using quotes versus double quotes,
leaving the quotes out of the param definition and/or surrounding the
reference with quotes, etc.
None of it works... only using the VALUE of the parameter in place of the
$MethodName reference seems to work.
What am I not doing right?
Thanks