[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Fwd: XSL question
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|