Hi,

This may be a little off topic, but can anyone tell me how I may do the
following:
I would like to obtain a node's text value. If the value is "" the I would
like to output
NULL otherwise I would like to use the node's value.

So far I have:

<xsl:variable name="sa">
  <xsl:if test="not(string(sales_agent))">NULL</xsl:if>
  <xsl:if test="string(sales_agent)"><xsl:value-of
select="sales_agent"/></xsl:if>
 </xsl:variable>

But how may I output the variable's value? It seems I can only do this as an
element attribute.

BTW, can anyone point me to a mailing list were such questions may be
answered?

TIA.
Hugo.


Reply via email to