Re: [xsl] getting the attribute into the literal result element

Subject: Re: [xsl] getting the attribute into the literal result element
From: Toma Tasovac <ttasovac@xxxxxxxxxxxxx>
Date: Sat, 1 May 2004 19:15:52 +0200
once again, many thanks!  i can't tell you how helpful this is for me.
T.

On May 1, 2004, at 6:53 PM, Michael Kay wrote:

<a>
  <xsl:attribute name="href">
    <xsl:text>lookup.php?word=</xsl:text>
    <xsl:choose>
       <xsl:when test="@lemma">
          <xsl:value-of select="@lemma"/>
       </xsl:when>
       <xsl:otherwise>
          <xsl:value-of select="."/>
       </xsl:otherwise>
    </xsl:choose>
    <xsl:text> target=iframewindow</xsl:text>
  </xsl:attribute>
  <xsl:value-of select="."/>
</a>

Current Thread