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 / F36738_teststrdvcMap.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-20  |  840 b   |  28 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:testmap="testmap"
  4. exclude-result-prefixes="xsl testmap"
  5. >
  6.    <xsl:import href="str-dvc-map.xsl"/>
  7.  
  8.    <!-- to be applied on any xml source -->
  9.    
  10.    <testmap:testmap/>
  11.  
  12.    <xsl:output omit-xml-declaration="yes" indent="yes"/>
  13.    
  14.    <xsl:template match="/">
  15.      <xsl:variable name="vTestMap" select="document('')/*/testmap:*[1]"/>
  16.      <xsl:call-template name="str-dvc-map">
  17.        <xsl:with-param name="pFun" select="$vTestMap"/>
  18.        <xsl:with-param name="pStr" select="'0123456789'"/>
  19.      </xsl:call-template>
  20.    </xsl:template>
  21.  
  22.     <xsl:template name="double" match="*[namespace-uri() = 'testmap']">
  23.       <xsl:param name="arg1"/>
  24.       
  25.       <xsl:value-of select="2 * $arg1"/>
  26.     </xsl:template>
  27.  
  28. </xsl:stylesheet>