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

Pass xml values to a javascript function

Subject: Pass xml values to a javascript function
From: Chen Wang <wangchen01@xxxxxxxxx>
Date: Fri, 7 Sep 2001 22:37:52 -0700 (PDT)
pass to 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="#"

And here is the paragraph should be changed:
<p style="display:none"><xsl:attribute

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

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

Current Thread


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.
First Name
Last Name
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.