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 / F42016_teststrDropWhile.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-12-27  |  1.4 KB  |  40 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:myDropController="f:mymyDropController" 
  4. exclude-result-prefixes="xsl myDropController"
  5. >
  6.   <xsl:import href="str-dropWhile.xsl"/>
  7.   
  8.   <xsl:output method="text"/>
  9.   <myDropController:myDropController/>
  10.   
  11.   <xsl:variable name="vTab" select="' '"/>
  12.   <xsl:variable name="vNL" select="' '"/>
  13.   <xsl:variable name="vCR" select="' '"/>
  14.   <xsl:variable name="vWhitespace" 
  15.                 select="concat(' ', $vTab, $vNL, $vCR)"/>
  16.   
  17.   <xsl:template match="/">
  18.     <xsl:variable name="vFunController" 
  19.                   select="document('')/*/myDropController:*[1]"/>
  20.            
  21.     
  22.     '<xsl:call-template name="str-dropWhile">
  23.       <xsl:with-param name="pStr" select="concat('  ', $vTab, $vCR, $vNL,
  24.                                                  'Some   Text',
  25.                                                  $vNL, $vTab, '   ',$vCR
  26.                                                  )"/>
  27.       <xsl:with-param name="pController" select="$vFunController"/>
  28.       <xsl:with-param name="pContollerParam" select="$vWhitespace"/>
  29.     </xsl:call-template>'
  30.   </xsl:template>
  31.   
  32.   <xsl:template match="myDropController:*">
  33.     <xsl:param name="pChar"/>
  34.     <xsl:param name="pParams"/>
  35.     
  36.     <xsl:if test="contains($pParams, $pChar)">1</xsl:if>
  37.   </xsl:template>
  38. </xsl:stylesheet>
  39.  
  40.