xslt param conditional check

Posted by LB on Stack Overflow See other posts from Stack Overflow or by LB
Published on 2010-05-05T19:55:10Z Indexed on 2010/05/05 19:58 UTC
Read the original article Hit count: 128

Filed under:
|

I have a:

<xsl:param name="SomeFlag" /> 

In my XSLT template, I want to do a conditional check on SomeFlag. Currently I'm doing it as:

<xsl:if test="$SomeFlag = true"> SomeFlag is true! </xsl:if>

Is this how we evaluate the the flag?

I'm setting the param in C# as:

xslarg.AddParam("SomeFlag", String.Empty, true);

Any ideas?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about c#