Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Take action based on result of lookup

Status
Not open for further replies.

jeffward

MIS
Jul 3, 2002
33
GB
I have a lookup table of values and need to perform an action based on the result of the lookup.

For example the following code will return either Y or N

<xsl:call-template name="Lookup_MyLookup">
<xsl:with-param name="P_ID" select="name()"/>
<xsl:with-param name="P_Attr" select="'Include'"/>
</xsl:call-template>

How can I put this into a variable so that I can do one thing if Y and another if N?

I have tried using combinations of double and single quotes but I cant get it to work!!
 
Code:
<xsl:variable name="myVar">
  <xsl:call-template name="Lookup_MyLookup">
    <xsl:with-param name="P_ID" select="name()"/>
    <xsl:with-param name="P_Attr" select="'Include'"/>
  </xsl:call-template>
</xsl:variable>

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Thanks for that Jon, I had actually worked it out by about 4:00 yesterday afternoon, didnt see your update until this morning so if our e-mail system had been working properly your post would have saved me a couple of hours ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top