RE: when test

Subject: RE: when test
From: Eric Taylor <Eric.Taylor@xxxxxxxxxxxx>
Date: Fri, 8 Sep 2000 08:09:13 -0500
Hi Mike.  Appreciate the response.  Your solution would work great if the
answer existed in my XML data, but my problem on this one is that I need to
do the test on what the getdirectory script returns rather than on anything
in my current file, that is, the equivalent of:
only I know I can't do it like that.  I thought of putting the value the
script into a variable and testing that, but MSXML2 (which is what I'm stuck
with for the moment with IE5) doesn't support xsl:variable (see <>
), so I don't think I can do that.  Anyone have further thoughts?
From: Mike Gargiullo [mailto:mgargiullo@xxxxxxxxxxxxxx]
 <xsl:when test="not(sometag='')"> 
 will be true if "sometag" contains data (sometag is from your xml
structure, can be at any level) 

----Original Message----- 
From: Eric Taylor [ mailto:Eric.Taylor@xxxxxxxxxxxx
<mailto:Eric.Taylor@xxxxxxxxxxxx> ] 

 Part of my XSL looks like this: 

          <xsl:when *** stuck here ***> 

              <xsl:attribute name="target">new_window</xsl:attribute> 
              <xsl:value-of select="@text"/> 
            <xsl:value-of select="@text"/> 

I only want the "when" to happen if 
<xsl:eval>getDirectory(this.getAttribute('page'))</xsl:eval> returns some 
value (that is, if it returns a blank value, I want to do the "otherwise"). 
I don't know the syntax for this.  Thanks.  Eric 

 XSL-List info and archive:

Current Thread