Update of /var/cvs/applications/richtext/config/xslt
In directory james.mmbase.org:/tmp/cvs-serv5366

Modified Files:
        2xhtml.xslt 
Log Message:
nm_classes also added if the body of the link is not generated


See also: http://cvs.mmbase.org/viewcvs/applications/richtext/config/xslt


Index: 2xhtml.xslt
===================================================================
RCS file: /var/cvs/applications/richtext/config/xslt/2xhtml.xslt,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- 2xhtml.xslt 7 Nov 2008 12:54:09 -0000       1.34
+++ 2xhtml.xslt 7 Nov 2008 14:31:26 -0000       1.35
@@ -3,7 +3,7 @@
   org.mmbase.bridge.util.Generator, and the XSL is invoked by FormatterTag.
 
   @author:  Michiel Meeuwissen
-  @version: $Id: 2xhtml.xslt,v 1.34 2008/11/07 12:54:09 michiel Exp $
+  @version: $Id: 2xhtml.xslt,v 1.35 2008/11/07 14:31:26 michiel Exp $
   @since:   MMBase-1.6
 -->
 <xsl:stylesheet
@@ -191,9 +191,14 @@
     <a>
       <xsl:attribute name="href"><xsl:apply-templates select="." mode="url" 
/></xsl:attribute>
       <xsl:attribute name="id"><xsl:value-of select="$relation/o:[EMAIL 
PROTECTED] = 'id']" /></xsl:attribute>
-      <xsl:if test="not($body)">
+      <xsl:choose>
+        <xsl:when test="not($body)">
         <xsl:attribute name="class">generated  <xsl:call-template 
name="nm_classes"/></xsl:attribute>
-      </xsl:if>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:attribute name="class"><xsl:call-template 
name="nm_classes"/></xsl:attribute>
+        </xsl:otherwise>
+      </xsl:choose>
       <xsl:apply-templates select="$body">
         <xsl:with-param name="in_a">yes</xsl:with-param>
       </xsl:apply-templates>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to