xsl-list
[Top] [All Lists]

Check the variable value

2005-08-05 02:51:17
How is it possible to check if the variable has some value or not.The variable value is text.

<xsl:variable name="image" select="IMAGE"/>
<xsl:if test="@image = null ">
  <xsl:text>asfa</xsl:text>
</xsl:if>

<TOPIC>
    <TITLE>Google</TITLE>
    <URL>http://www.eggheadcafe.com/default.asp</URL>
    <IMAGE>images/model-icon.gif</IMAGE>
  </TOPIC>
  <TOPIC>
    <TITLE>Actions</TITLE>
    <URL>http://www.eggheadcafe.com/forums.asp</URL>
    <IMAGE></IMAGE>
  </TOPIC>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>