[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Including javascript functions in XSL Stylesheet

Subject: Including javascript functions in XSL Stylesheet
From: prasadm@xxxxxxx
Date: Thu, 24 Feb 2000 13:46:24 -0600
javascript functions in xsl
Hi guys,

I have a xsl file which contains javascript function. This xsl file is used
to convert and xml string built dynamically to convert to HTML. The
conversion
goes through fine if there is no javascript function, but on the other hand
if the function
is included it gives the error.

"Attribute value should begin with a quote".

One way of overcoming this problem is have the function in a javascript file
and include the file using <SCRIPT LANGUAGE="JavaScript"
SRC="/../../common.js"></SCRIPT>

But I want to know is there any other way of including the javscript in the
generated 
HTML file itself.

The javascript function is as show below.
I am using Oracle's Parser to achieve this.

<!-- Java Script function  
function getIndex(thisForm, buttonLabel) {

	arrElmnts = thisForm.elements
	
	for(i = 0; i < arrElmnts.length; i++) {
	
		if( arrElmnts[i].value == buttonLabel ) {
			return i		
		}

	}

	return -1
}
-->

Thanks,

Prasad M
Home:- 	630-595-0642
Work:-	312-974-6543
prasadm@xxxxxxx <mailto:prasadm@xxxxxxx> 



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.