Subject: RE: [xsl] Using msxsl:script or EXSLT function to define a function From: "Jason" <estudio@xxxxxxxxx> Date: Wed, 18 Jun 2003 13:00:11 +0800 |
You may try this XSLT: <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:user="http://estudio.xrs.net"> <msxml:script language="JavaScript" implements-prefix="user"><![CDATA[ function checking(){ return "testing"; } ]]></msxml:script> <xsl:template match="/"> <xsl:value-of select="user:checking()"/> </xsl:template> </xsl:stylesheet> this is a simple example, you also can using parameters in the user-defined functions. Jason -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Claudio Russo Sent: 2003年6月18日 11:45 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Using msxsl:script or EXSLT function to define a function Does anybody know how to use msxsl:script to define a javascript function, or EXSLT function definition? I'm not able to use it inside xsl: without having error. ===== Regards, Claudio. IT Consultant. Buenos Aires, Argentina. e-mail: claudio_russo@xxxxxxxxx __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using msxsl:script or EXSLT f, Claudio Russo | Thread | RE: [xsl] Using msxsl:script or EXS, Claudio Russo |
[xsl] Urgent: Grouping attributes t, Bhargav Bharath | Date | Re: [xsl] Namespace attached to hos, david_n_bertoni |
Month |