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 / F42106_teststrdvcMap2.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-06  |  884 b   |  29 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.    <testmap:testmap/>
  9.  
  10.    <xsl:output omit-xml-declaration="yes" indent="yes"/>
  11.    
  12.    <xsl:template match="/">
  13.      <xsl:variable name="vTestMap" select="document('')/*/testmap:*[1]"/>
  14.      <xsl:call-template name="str-dvc-map">
  15.        <xsl:with-param name="pFun" select="$vTestMap"/>
  16.        <xsl:with-param name="pStr" select="string(/*)"/>
  17.      </xsl:call-template>
  18.    </xsl:template>
  19.  
  20.     <xsl:template name="indentNL" match="*[namespace-uri() = 'testmap']">
  21.       <xsl:param name="arg1"/>
  22.       
  23.       <xsl:value-of select="$arg1"/>
  24.       <xsl:if test="$arg1=' '">
  25.         <xsl:value-of select="'    '"/>
  26.       </xsl:if>
  27.     </xsl:template>
  28.  
  29. </xsl:stylesheet>