This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Fwd: XSL question


Hello Tony

-----Original Message-----
From: Tony Felik <tony.felik@extent.com>
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]