|
Subject: RE: [xsl] XML-Data from JavaScript into XSL From: "Robert Koberg" <rob@xxxxxxxxxx> Date: Mon, 4 Nov 2002 03:25:21 -0800 |
Hi,
You should look at how to do this in JS, then the XSL will be easy to come up
with.
Hint: write to the select list, not the document
Robert Koberg
liveSTORYBOARD
415-615-9079
San Francisco
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Johannes.Becker@xxxxxx
> Sent: Monday, November 04, 2002 12:16 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] XML-Data from JavaScript into XSL
>
>
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] XML-Data from JavaScript into, Johannes . Becker | Thread | [xsl] Excel XML tranformation, Thomas V. Nielsen |
| Re: [xsl] xsl:number useless with x, David Carlisle | Date | Re: [xsl] How to obtain parameters , Mike Brown |
| Month |