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 / F35658_simpleIntegration.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-20  |  924 b   |  29 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:saxon="http://icl.com/saxon"
  4. exclude-result-prefixes="xsl saxon"
  5. >
  6.   <xsl:import href="PartialSumsList.xsl"/>
  7.   
  8.   <xsl:template name="simpleIntegration">
  9.     <xsl:param name="pFun" select="/.."/>
  10.     <xsl:param name="pA"/>
  11.     <xsl:param name="pB"/>
  12.     <xsl:param name="pEpsRough" select="0.0001"/>
  13.  
  14.      <xsl:variable name="vrtfRoughResults">
  15.         <xsl:call-template name="partialSumsList">
  16.             <xsl:with-param name="pFun" select="$pFun"/>
  17.             <xsl:with-param name="pA" select="$pA"/>
  18.             <xsl:with-param name="pB" select="$pB"/>
  19.             <xsl:with-param name="pEps" select="$pEpsRough"/>
  20.         </xsl:call-template>
  21.      </xsl:variable>
  22.  
  23.      <xsl:variable name="vRoughResults" select="saxon:node-set($vrtfRoughResults)/*"/>
  24.  
  25.      <xsl:copy-of select="$vRoughResults"/>
  26.     
  27.   </xsl:template>
  28.  
  29. </xsl:stylesheet>