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[(_at_)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(_dot_)martinez(_at_)trip(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: "'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'"
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: RE: [xsl] Embedding XSL in JavaScript
Date: Wed, 5 Mar 2003 07:38:48 -0700
> From: John Proctor [mailto:jproctor0(_at_)hotmail(_dot_)com]
> Sent: Wednesday, March 05, 2003 5:39 AM
> Subject: [xsl] Embedding XSL in JavaScript
>
> Is it possible to embed xsl within JavaScript.
Yes.
If you need me to elaborate on the answer, I'll need you to elaborate on
the
question. ;-)
cheers,
b.
| brian martinez
brian(_dot_)martinez(_at_)trip(_dot_)com |
| senior gui programmer 303.708.7248 |
| trip network, inc. fax 303.790.9350 |
| 6436 s. racine cir. englewood, co 80111 |
| http://www.cheaptickets.com/ http://www.trip.com/ |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list