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

RE: How to get value from JavaScript

Subject: RE: How to get value from JavaScript
From: "Kong, Yan" <KongY@xxxxxxxxxxx>
Date: Fri, 04 Oct 2002 11:12:32 -0400
get value using javascript
Michael,

Thank you for your help.  Now I understand the javascript can't be run during the transformation.  I think I need to look into Xalan-Java for the solution.

Thank you,
Yan




> ----------
> From: 	Michael Kay[SMTP:michael.h.kay@xxxxxxxxxxxx]
> Reply To: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Sent: 	Friday, October 04, 2002 10:13 AM
> To: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 	RE:  How to get value from JavaScript
> 
> > 
> > First, I tried to assign xslt variable using JavaScript:
> > ***************************  XSLT codes 
> > ************************* <xsl:stylesheet xmlns:xsl = 
> > "http://www.w3.org/1999/XSL/Transform"
> > 					 
> xmlns:js="javascript:code" version = "1.1" > 
> > 		
> > 	<xsl:output method = "html" /> 
> > 
> > 	<xsl:variable name="url">	
> > 		<script language="javascript">
> > 			var strID;
> > 			var intLen;
> > 			strID = window.document.location.toString();
> > 			intLen = strID.indexOf('livelink.exe/fetch');
> > 			strID = strID.substring(0, intLen);
> > 			document.write(strID);
> > 		</script>					
> > 		
> > 	</xsl:variable>
> > ***************************  XSLT codes *************************
> 
> There's nothing magic about a <script> element in XSLT. It's just a
> result element that goes into the output HTML file. It doesn't get
> executed.
> 
> If you want JavaScript executed during the transformation, use
> msxsl:script or other vendor-defined extensions.
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> 
>  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

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.