|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Embedding XSL in JavaScript
Great Brian what I meant is I have the the following javascript function and I would like to perform Xpath functions such as sum() and return a value into say a field. So I wondered if it was possible to embed XSL into the code in some way? function Search() { try { /**************************************************************** This section is to input a value from Accno.value search and then populate the fields *****************************************************************/ var strSearchValue = Accno.value; var strSearchXPath2 = "INVOICE/DETAILS[@ACCNO='" +strSearchValue + "']" var y; y=docInvoice.getElementsByTagName(strSearchXPath2); //Assign values to fields txtCustomer.value = y.item(0).getAttribute("CUSTOMER"); txtAddress.value = y.item(0).getAttribute("ADDRESS"); txtCity.value = y.item(0).getAttribute("City"); txtState.value = y.item(0).getAttribute("STATE"); txtZip.value = y.item(0).getAttribute("ZIP"); } catch (error) { alert("An error occured in the function Search() The error was:" + error.description); } } From: "Martinez, Brian" <brian.martinez@xxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: Embedding XSL in JavaScript Date: Wed, 5 Mar 2003 07:38:48 -0700 _________________________________________________________________ MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








