Subject: RE: [xsl] msxsl:script with VBScript & JavaScript From: aruniima.chakrabarti@xxxxxxxxxxxxxxxxxx Date: Fri, 25 Oct 2002 19:43:15 +0530 |
No... still the same problem... :( Regards, aruniima -----Original Message----- From: Adam Griffin [mailto:agriffin@xxxxxxxxxxxx] Sent: Friday, October 25, 2002 7:23 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: [xsl] msxsl:script with VBScript & JavaScript 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: [xsl] 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 ---------------------------------------------------------------------------- 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] msxsl:script with VBScrip, Adam Griffin | Thread | RE: [xsl] msxsl:script with VBScrip, Jeff Beadle |
RE: [xsl] msxsl:script with VBScrip, Adam Griffin | Date | Re: [xsl] too many columns, Gabi Bucataru |
Month |