Hi I'm trying to create a choosing statement by using a link ie

if(Link == google) 
   run something
else (Link == yahoo)

Meaning that if the declared link is google it will do something
else if it will load yahoo

Here's what i'm thinking how the code is :

<xsl:element name="a"> 
<xsl:attribute name="href">http://www.google.com</xsl:attribute>// first get the link
<xsl:when test="http://www.google.com">
  Do something 1
  Do something 2

Please tell me what i'm doing wrong here

Not asking for code but please direct me to the correct way