Click to See Complete Forum and Search --> : an XML question


ofir
12-27-2005, 08:00 AM
the XML furom is not very active... so i ask here anout XML/XSL

i've got an XML field named "link", but it doesnt allways have some content.
i want to display some text ONLY IF this field have something.

started with this:
<xsl:if test="link">
some text to show
</xsl:if>

how do i write : if field "link" have any content ?

example = if field "link" equal 'shaka'
<xsl:if test="link = 'shaka'">
some text to show
</xsl:if>

ofir
12-27-2005, 08:11 AM
FOUND IT !!
<xsl:if test="link != ''">