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

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