xsl-list
[Top] [All Lists]

work with xml elements through javascript in xslt

2002-10-23 09:26:20
Hi,

Here is a task I would like to accomplish.

I have an xml file. For example:
<records>
        <record>
                <element>element1</element>
                <element>element2</element>
        </record>
        <record>
                <element>element3</element>
                <element>element4</element>
        </record>
</records>

And I would like to put a check box in front of each record and make it markable. So, when a user make the record, the element values are saved to a file through an java method called in the javascript. This part is done very easily.

But now, I would like to put a mark all option which allows user to mark all the records at once. So, this requires the javascript to be able to go through each of the records and grab the element tags and call an external java method to save them to a file.

Then, my question is, is there a way to read the elements through javascript in xslt?

Thanks a lot.

Ming



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



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