lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya/xslt/util page-util.xsl
Date Wed, 20 Aug 2003 19:00:32 GMT
andreas     2003/08/20 12:00:32

  Modified:    src/webapp/lenya/xslt/util page-util.xsl
  Log:
  added print-list-simple template
  
  Revision  Changes    Path
  1.7       +19 -0     cocoon-lenya/src/webapp/lenya/xslt/util/page-util.xsl
  
  Index: page-util.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/util/page-util.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- page-util.xsl	7 Aug 2003 10:23:55 -0000	1.6
  +++ page-util.xsl	20 Aug 2003 19:00:32 -0000	1.7
  @@ -30,4 +30,23 @@
     </xsl:choose>
   </xsl:template>
   
  +<!-- prints a list of $separator-separated strings -->
  +<xsl:template name="print-list-simple">
  +  <xsl:param name="list-string"/>
  +  <xsl:param name="separator" select="','"/>
  +  <xsl:choose>
  +    <xsl:when test="contains($list-string, $separator)">
  +      <xsl:value-of select="substring-before($list-string, $separator)"/>
  +      <xsl:call-template name="print-list-simple">
  +        <xsl:with-param name="list-string" select="substring-after($list-string, $separator)"/>
  +        <xsl:with-param name="separator" select="$separator"/>
  +      </xsl:call-template>
  +      <br/>
  +    </xsl:when>
  +    <xsl:otherwise>
  +      <xsl:value-of select="$list-string"/>
  +    </xsl:otherwise>
  +  </xsl:choose>
  +</xsl:template>
  +
   </xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message