Subject: RE: From: Mark Hayes <mark@xxxxxxxxxxx> Date: Wed, 3 Nov 1999 15:16:34 -0800 |
<xsl:if test='Description'> will test for a Description element as a child of the current node. <xsl:if test='not(Description = '')'> will test whether there is a Description child element which does not contain an empty string. -- mark > -----Original Message----- > From: Paul Johnson [mailto:paul@xxxxxxxxxxxxxxx] > Sent: Wednesday, November 03, 1999 2:14 PM > To: XSL-List@xxxxxxxxxxxxxxxx > Subject: > > > Hello All, > > How can I test to see if a element is NOT null? > I have tried the following: > > <xsl:if test="Discription[.!='']"><img > src="images/desc.jpg"/></xsl:if> > > <xsl:if test="Discription != ''><img src="images/desc.jpg"/></xsl:if> > > <xsl:if test="Discription $ne$ ''"<img > src="images/desc.jpg"/></xsl:if> > > I am not sure where to look now. > > Thanks, > > Paul R. Johnson > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
node() grouping, Earl Bingham | Thread | RE: attributes and template modes, Mark Hayes |
Re: test for non-null text(), Earl Bingham | Date | RE: attributes and template modes, Mark Hayes |
Month |