techtonik               Sun Nov 21 16:13:49 2004 EDT

  Modified files:              
    /phpdoc/xsl common.xsl 
  Log:
  fix last customization to work properly
  
http://cvs.php.net/diff.php/phpdoc/xsl/common.xsl?r1=1.25&r2=1.26&ty=u
Index: phpdoc/xsl/common.xsl
diff -u phpdoc/xsl/common.xsl:1.25 phpdoc/xsl/common.xsl:1.26
--- phpdoc/xsl/common.xsl:1.25  Fri Nov 19 06:06:06 2004
+++ phpdoc/xsl/common.xsl       Sun Nov 21 16:13:48 2004
@@ -3,7 +3,7 @@
 
   common.xsl: Common customizations for all HTML formats
 
-  $Id: common.xsl,v 1.25 2004/11/19 11:06:06 techtonik Exp $
+  $Id: common.xsl,v 1.26 2004/11/21 21:13:48 techtonik Exp $
 
   What is done in this stylesheet as common to all HTML output formats:
 
@@ -396,19 +396,18 @@
         <xsl:when test="contains(current(), '::')">
           <xsl:value-of select="'::'"/>
         </xsl:when>
-        <xsl:otherwise>
-          <xsl:value-of select="false()"/>
-        </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
 
-    <xsl:if test="$token">
-      <xsl:value-of select="concat(substring-before(current(), $token), '-',
-                                   substring-after(current(), $token))"/>
-    </xsl:if>
-    <xsl:if test="not ($token)">
-       <xsl:value-of select="string(current())"/>
-    </xsl:if>
+    <xsl:choose>
+      <xsl:when test="string-length($token) != 0">
+        <xsl:value-of select="concat(substring-before(current(), $token), '-',
+                                     substring-after(current(), $token))"/>
+      </xsl:when>
+      <xsl:otherwise>
+         <xsl:value-of select="string(current())"/>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:variable>
   
   <xsl:variable name="function.href">

Reply via email to