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 / F32570_testMapTree.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-20  |  905 b   |  30 lines

  1. <xsl:stylesheet version="1.0" 
  2.  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3.  xmlns:testmapTree-Fun="testmapTree-Fun" 
  4.  exclude-result-prefixes="xsl testmapTree-Fun"
  5. >
  6.     <xsl:import href="mapTree.xsl"/>
  7.    
  8.    <!-- This transformation must be applied to:
  9.         numTree.xml 
  10.     -->
  11.  
  12.     <testmapTree-Fun:testmapTree-Fun/>
  13.     
  14.     <xsl:output indent="yes" omit-xml-declaration="yes"/>
  15.     <xsl:template match="/">
  16.       <xsl:variable name="vFun" select="document('')/*/testmapTree-Fun:*[1]"/>
  17.       
  18.       <xsl:call-template name="mapTree">
  19.         <xsl:with-param name="pTree" select="/*"/>
  20.         <xsl:with-param name="pFun" select="$vFun"/>
  21.       </xsl:call-template>
  22.     </xsl:template>
  23.  
  24.     <xsl:template match="*[namespace-uri()='testmapTree-Fun']">
  25.       <xsl:param name="arg1"/>
  26.       
  27.       <xsl:value-of select="2 * $arg1"/>
  28.     </xsl:template>
  29.  
  30. </xsl:stylesheet>