RE: [xsl] Fwd: XSL question

Subject: RE: [xsl] Fwd: XSL question
From: Edmund Mitchell <EMitchell@xxxxxxx>
Date: Mon, 19 Mar 2001 11:33:45 -0800
Hello Tony

-----Original Message-----
From: Tony Felik <tony.felik@xxxxxxxxxx>
How can I handle two empty tags?
for example:
<xsl:if test="Invoicing/Customer/state[.!=''] and 
Invoicing/Customer/country[.!='']">


It depends what you want to do with them.  You can say:

<xsl:if test="string(Invoicing/Customer/state)  and 
string(Invoicing/Customer/country)">
 <!-- this part gets executed only if both -->
 <!-- elements are non-empty-->
</xsl:if>

Does that answer your question?

Edmund

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread