home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F28880_doubleall.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-11-03  |  795 b   |  26 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:doubleall="doubleall"
  4. exclude-result-prefixes="xsl doubleall"
  5. >
  6.    <xsl:import href="map.xsl"/>
  7.    
  8.    <doubleall:doubleall/>
  9.    
  10.    <xsl:template name="doubleall">
  11.      <xsl:param name="pList" select="/.."/>
  12.      
  13.      <xsl:variable name="vFunDouble" select="document('')/*/doubleall:*[1]"/>
  14.      
  15.      <xsl:call-template name="map">
  16.        <xsl:with-param name="pFun" select="$vFunDouble"/>
  17.        <xsl:with-param name="pList1" select="$pList"/>
  18.      </xsl:call-template>
  19.    </xsl:template>
  20.  
  21.     <xsl:template name="double" match="*[namespace-uri() = 'doubleall']">
  22.       <xsl:param name="arg1"/>
  23.       
  24.       <xsl:value-of select="2 * $arg1"/>
  25.     </xsl:template>
  26. </xsl:stylesheet>