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

XML-Data from JavaScript into XSL

Subject: XML-Data from JavaScript into XSL
From: Johannes.Becker@xxxxxx
Date: Mon, 4 Nov 2002 09:15:36 +0100
javascript into xml
Hi,

I want to extact data from an xml-file into the xsl-sheet using JavaScript.
My problem: I have a button. onclick it should fill a dropdown(select) with
entrys of the xml-file. How should the funktion look like?

My current funktion:

function patternClick()
{
  document.write("<xsl:for-each select="year">
             <option>
               <xsl:value-of select="@text"/>
             </option>
              </xsl:for-each>");
}

Is this the right approach? But how can I direct this data into the right
select-box (path of select box: document.f1.year) ? Or am I going into the
wrong direction?

Thans
Jonny


 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.