This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Show - hide with xslt?
- To: <xsl-list at mulberrytech dot com>
- Subject: Re: Show - hide with xslt?
- From: "Andrea Penna" <andreapenna at libero dot it>
- Date: Thu, 24 Aug 2000 19:45:20 +0200
- References: <000101c00dc0$d7ad61c0$3205070a@alpnet.com>
- Reply-To: xsl-list at mulberrytech dot com
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