Re: Show - hide with xslt?

Subject: Re: Show - hide with xslt?
From: "Andrea Penna" <andreapenna@xxxxxxxxx>
Date: Thu, 24 Aug 2000 19:45:20 +0200
Reply to my self ;-)

found the right way:

      <xsl:variable name="Abstract" select="normalize-space(.)"/>
      <xsl:variable name="my_id"><xsl:value-of select="generate-id()"/>
</xsl:variable>

      <div style="display:none">
      <xsl:attribute name="id"><xsl:value-of
select="$my_id"/></xsl:attribute>
       <p><xsl:value-of select="$Abstract"/></p>
      </div>

      <a>
      <xsl:attribute name="href">javascript:showhide('<xsl:value-of
select="$my_id"/>');</xsl:attribute>
      <IMG alt="Show Abstract" src="../images/smsearch.gif" border="0"/>
      </a>

Thank you Bjorn, and thanks to Chris and Toni for your replies too.
I will study your suggestions these days.

Bye, Andrea




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


Current Thread