This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: script and xsl
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 7 Mar 2002 15:19:45 +0100
- Subject: RE: [xsl] script and xsl
- Reply-to: xsl-list at lists dot mulberrytech dot com
Again,
why are you using script at all?
<xsl:value-of select="Sales * UnitCost"/>
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Alia Mikati
> Sent: Thursday, March 07, 2002 3:15 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] 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