Subject: Re: [xsl] msxml and perlscript From: Conor Ryan <cryan@xxxxxxx> Date: Wed, 11 Feb 2004 15:00:33 +0000 |
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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] msxml and perlscript, bry | Thread | [xsl] shouldn't work but it does?, bry |
RE: [xsl] Normalize / Simplify HTML, David . Pawson | Date | Re: [xsl] Normalize / Simplify HTML, David Carlisle |
Month |