Subject: RE: Combining two test using the "and" operator From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 7 Dec 1999 11:41:35 -0000 |
> <xsl:if test ="@imagehref"> > <xsl:if test =".[@imagehref != '']"> Your question leaves me slightly suspicious that you are using Microsoft XSL rather than W3C XSLT, in which case ignore this answer. (It's always useful on this list to say what product you are using). If you want to test that the current node has an imagehref attribute and that its value is not the empty string, two simple ways to do it are: <xsl:if test="string(@imagehref)"> <xsl:if test="@imagehref!=''"> You don't actually need to use the and operator. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Combining two test using the "a, David Carlisle | Thread | SV: Combining two test using the "a, Tony Fabian |
Re: HTML to XML, David Carlisle | Date | Re: New twist: eliminating nodes wi, Phil Lanch |
Month |