You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/09/19 15:50:56 UTC
svn commit: r447845 - /lenya/trunk/src/webapp/lenya/xslt/util/page-util.xsl
Author: andreas
Date: Tue Sep 19 06:50:56 2006
New Revision: 447845
URL: http://svn.apache.org/viewvc?view=rev&rev=447845
Log:
[minor change] code formatting
Modified:
lenya/trunk/src/webapp/lenya/xslt/util/page-util.xsl
Modified: lenya/trunk/src/webapp/lenya/xslt/util/page-util.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/xslt/util/page-util.xsl?view=diff&rev=447845&r1=447844&r2=447845
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/util/page-util.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/util/page-util.xsl Tue Sep 19 06:50:56 2006
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 1999-2004 The Apache Software Foundation
-
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,48 +24,48 @@
>
-<!-- includes the default CSS stylesheet -->
-<xsl:template name="include-css">
- <xsl:param name="contextprefix"/>
- <link rel="stylesheet" type="text/css" href="{$contextprefix}/lenya/css/default.css" media="screen"/>
-</xsl:template>
+ <!-- includes the default CSS stylesheet -->
+ <xsl:template name="include-css">
+ <xsl:param name="contextprefix"/>
+ <link rel="stylesheet" type="text/css" href="{$contextprefix}/lenya/css/default.css" media="screen"/>
+ </xsl:template>
+
+ <!-- prints a list of $separator-separated strings -->
+ <xsl:template name="print-list">
+ <xsl:param name="list-string"/>
+ <xsl:param name="separator" select="','"/>
+ <xsl:choose>
+ <xsl:when test="contains($list-string, $separator)">
+ <li><xsl:value-of select="substring-before($list-string, $separator)"/></li>
+ <xsl:call-template name="print-list">
+ <xsl:with-param name="list-string" select="substring-after($list-string, $separator)"/>
+ <xsl:with-param name="separator" select="$separator"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <li><xsl:value-of select="$list-string"/></li>
+ </xsl:otherwise>
+ </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="','"/>
-<!-- prints a list of $separator-separated strings -->
-<xsl:template name="print-list">
- <xsl:param name="list-string"/>
- <xsl:param name="separator" select="','"/>
- <xsl:choose>
- <xsl:when test="contains($list-string, $separator)">
- <li><xsl:value-of select="substring-before($list-string, $separator)"/></li>
- <xsl:call-template name="print-list">
- <xsl:with-param name="list-string" select="substring-after($list-string, $separator)"/>
- <xsl:with-param name="separator" select="$separator"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <li><xsl:value-of select="$list-string"/></li>
- </xsl:otherwise>
- </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)"/><br />
- <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>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$list-string"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-
+ <xsl:choose>
+ <xsl:when test="contains($list-string, $separator)">
+ <xsl:value-of select="substring-before($list-string, $separator)"/><br />
+ <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>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$list-string"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org