xsl-list
[Top] [All Lists]

XML-Data from JavaScript into XSL

2002-11-04 01:15:36
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



<Prev in Thread] Current Thread [Next in Thread>