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

Re: script and xsl

Subject: Re: script and xsl
From: Corey_Haines@xxxxxxxxxxxxxxx
Date: Thu, 7 Mar 2002 09:18:50 -0500
firstchild.selectsinglenode
I've run into this before, and it had to do with the datatype that is 
being passed to the function. You may try experimenting with 
node.firstChild.selectSingleNode


However, is there a reason that you aren't just doing a 

<xsl:value-of select="Sales * UnitCost" />

-Corey





"Alia Mikati" <Aliam@xxxxxxxxxxxxxxxxxxxx>
03/07/2002 09:14 AM
Please respond to xsl-list

 
        To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx
        cc:     (bcc: Corey Haines)
        Subject:         script and xsl



Hi friends
I got this msg in my XSL file (knowing that I'm using MSXML3 parser and
IE5):
Microsoft VBScript runtime error Object doesn't support this property or
method: 'node.selectSingleNode'

And this is my code:
<?xml version="1.0"?>
<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xslscript="http://mycompany.com/mynamespace"  version="1.0">
<msxsl:script language="vbScript" implements-prefix="xslscript">
   function calcul(node)
     m=Node.selectSingleNode("Sales").text
     n=node.selectSingleNode("UnitCost").text
     calcul=m*n
   end function
</msxsl:script>

And I'm calling it this way:
<xsl:value-of select="xslscript:calcul(me) "/>

What could be the problem???
Thx again :)



 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.