[xsl] When test expression

Subject: [xsl] When test expression
From: "Paul Dupuy, Jr." <PDupuy@xxxxxxxxxxx>
Date: Tue, 27 Mar 2001 20:04:09 -0800
I have a template with logic:

         <xsl:when test="A/B">
            <xsl:value-of select="A/B"/>

to process a document like:


which produces:


I'd like to have the test for A/B only succeed when the
value of the B node is not "" (producing <SPAN>Orange</SPAN>
in the example).

I've tried

   <xsl:when test="A/B[not(.)]"/>

but this does not work. Any suggestions?

Thanks for your time,


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

Current Thread