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