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

RE: msxsl:script with VBScript & JavaScript

Subject: RE: msxsl:script with VBScript & JavaScript
From: Adam Griffin <agriffin@xxxxxxxxxxxx>
Date: Fri, 25 Oct 2002 09:53:02 -0400
chakrabar
You might have passed it a node instead of a string. Try:
<xsl:value-of select="string(//regularcust/name)" />

-adam



-----Original Message-----
From: aruniima.chakrabarti@xxxxxxxxxxxxxxxxxx
[mailto:aruniima.chakrabarti@xxxxxxxxxxxxxxxxxx]
Sent: Friday, October 25, 2002 9:45 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  msxsl:script with VBScript & JavaScript


Hello everyone,
	I have the following xsl in which I calling a piece of JavaScript...
but if I do the same with VBScript, it does not work.

My xsl...
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="http://mycompany.com/mynamespace">
<msxsl:script language="JavaScript" implements-prefix="user"> 
	function xml(str)
	{
		return str;
	}
</msxsl:script>

<xsl:template match="/">
	<xsl:variable name="test"><xsl:value-of
select="//regularcust/name"/></xsl:variable>
	   <xsl:value-of select="user:xml($test)"/>
	</xsl:template>
</xsl:stylesheet>

this works but I unable to do exactly the same in VBscript
Also I am unable to perform any kind of operation on the string which I pass
to the Script function as it says "unable to convert returned value as a xsl
data type"
 Can somebody help me on this?? Thanks in advance...

Regards,
aruniima

----------------------------------------------------------------------------

This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--------------------------------------------------------------------------

 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.