|
Subject: RE: [xsl] Pass xml values to a javascript function From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Sat, 8 Sep 2001 06:57:34 +0100 |
Chen,
<a href="#" onclick="toggle('{id}')><xsl:value-of
select="paragraphname"></a>
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Chen Wang
> Sent: 08 September 2001 06:38
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Pass xml values to a javascript function
>
>
> In xsl file, there is a javascript,
> function toggle(id) {
> codes here
> }
> which is used to change the display status of a
> paragraph. A link will be used to invoke the
> function, like this:
> <a href="#"
> onclick="toggle('a_paragraph_id')><xsl:value-of
> select="paragraphname"></a>
>
> And here is the paragraph should be changed:
> <p style="display:none"><xsl:attribute
> name="id"><xsl:value-of
> select="paragraphid"/></xsl:attribute>paragraph
> here</p>
>
> As you may know, in xml there is an element like this:
> <paragraphid>idnumer</paragraphid>. My question is: how to
> pass idnumber to 'a_paragraph_id'.
>
> The idea for this xsl is to generate a list of links
> based on the paragraphs in a xml. And each link can
> toggle the correspondent paragraph. Thanks,...chen
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with
> Yahoo! Messenger http://im.yahoo.com
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Pass xml values to a javascri, Chen Wang | Thread | RE: [xsl] Pass xml values to a java, Chen Wang |
| RE: [xsl] IE6, Chris Bayes | Date | RE: [xsl] XQuery 1.0 and XPath 2.0 , Chris Bayes |
| Month |