[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Show - hide with xslt?

Subject: Re: Show - hide with xslt?
From: "Andrea Penna" <andreapenna@xxxxxxxxx>
Date: Thu, 24 Aug 2000 19:20:21 +0200
hide my id
This seems an easy way but...

If I use this one:


      <xsl:variable name="my-id" select="generate-id()"/>

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

      <a href="javascript:showhide('$my-id');">


It doesn't write or doen't generate the "id value".


Besides, if I use this:

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

It generates the attribute "id" but now how can I send it to the javascript
function?

      <a
href="javascript:showhide('How_Tell_it_I_Want_generated_ID_here???');">



Thank you for your suggestion.

Bye,
Andrea



----- Original Message -----
From: "Bjorn Boxstart" <bboxstart@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, August 24, 2000 1:45 PM
Subject: RE: Show - hide with xslt?


> Your text ("click here to show") must somehow be connected to the
> information that is being displayed or hidden. You can do this by using
the
> generateid() function in your xslt stylesheet, so that the following will
be
> the result:
>
> <a href="javascript:showhide('<generated id>');">[click here to show /
> hide]</a>
> <div id="<generated id>" style="display:none">
> <p>Blablalblbblbxkblkblk
> blxkblkblkalkalbka
> xkblalblblalbkalk
> blkxlbkalkblakb</p>
> </div>



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.