xsl-list
[Top] [All Lists]

Re: msxml and perlscript

2004-02-11 08:00:33
Hi,

Not sure if anyone else has responded but the stylesheet below produces the
following output using MSXML3

OUTPUT:
hi from perl

XSLT:
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:perl="urn:extra-functions"
>
<msxsl:script language="PerlScript" implements-prefix="perl">
sub test(){
return "hi from perl";
}
</msxsl:script>
<xsl:template match="/">
<xsl:value-of select="perl:test()" />
</xsl:template>
</xsl:stylesheet>

rgds,
Conor.


---------
Conor Ryan,
XML Workshop Ltd,
10 Greenmount Industrial Estate, Harolds Cross, Dublin 12, IRELAND.
Email: cryan_at_xmlw_dot_ie
Phone: +353 1 449 6250; Fax: +353 1 449 6299
Web: http://www.xmlw.ie/
YAWC Online: http://www.yawconline.com/
YAWC Pro: http://www.yawcpro.com/



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>