| 
 
Subject: [xsl] Ann.: FXSL for XSLT 2.0 (version 1.1) From: Dimtre Novatchev <dnovatchev@xxxxxxxxx> Date: Fri, 17 Dec 2004 20:43:43 +1100  | 
FXSL for XSLT 2.0  (version 1.1)
=========================
17 Dec. 2004
FXSL for XSLT 2.0  (version 1.1) has been released and can be downloaded from:
    
      https://sourceforge.net/project/showfiles.php?group_id=53841
This is a maintenance release. One major bug has been systematically
fixed within all stylesheet modules.
This affects the way in which template references should be declared. 
Any template, a reference node to which will be passed as a parameter
to an FXSL xsl:function or xsl:template, now must have the
      mode="f:FXSL"
attribute, where the prefix "f" is associated with the FXSL namespace-uri:
      xmlns:f="http://fxsl.sf.net/"
      
Example:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:foldl-func="foldl-func"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="f foldl-func"
>
   <xsl:import href="func-foldl.xsl"/>
   <!-- This transformation must be applied to:
        numList.xml 
     -->
   <foldl-func:foldl-func/>
   <xsl:variable name="vFoldlFun" select="document('')/*/foldl-func:*[1]"/>
    <xsl:output  encoding="UTF-8" omit-xml-declaration="yes"/>
    <xsl:template match="/">
      <xsl:value-of select="f:foldl($vFoldlFun, 1, 1 to 10 )"/>
    </xsl:template>
    
    <xsl:template match="*[namespace-uri() = 'foldl-func']"
     mode="f:FXSL">
         <xsl:param name="arg1" select="0"/>
         <xsl:param name="arg2" select="0"/>
         
         <xsl:value-of select="$arg1 * $arg2"/>
    </xsl:template>
</xsl:stylesheet>
Using unique mode is necessary to ensure that no other template will
be selected for processing (note that the FXSL stylesheet modules are
imported into unknown user's code).
Cheers,
Dimitre Novatchev.
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Xsl copy nodes, Geert Josten | Thread | [xsl] Add attribute to root node, Robert Soesemann | 
| [xsl] System properties, Colin Paul Adams | Date | RE: [xsl] System properties, Michael Kay | 
| Month |