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

Modified Files:
        2rich.xslt 
Log Message:
support for 'show_broken' also on p, section


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


Index: 2rich.xslt
===================================================================
RCS file: /var/cvs/applications/richtext/config/xslt/2rich.xslt,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- 2rich.xslt  3 Jun 2008 12:24:37 -0000       1.8
+++ 2rich.xslt  4 Jun 2008 12:18:21 -0000       1.9
@@ -6,7 +6,7 @@
 
 
   @author:  Michiel Meeuwissen
-  @version: $Id: 2rich.xslt,v 1.8 2008/06/03 12:24:37 michiel Exp $
+  @version: $Id: 2rich.xslt,v 1.9 2008/06/04 12:18:21 michiel Exp $
   @since:   MMBase-1.6
 -->
 <xsl:stylesheet
@@ -62,8 +62,8 @@
 
     <xsl:variable name="relatednodes" select="[EMAIL PROTECTED] = 
$srelations/o:[EMAIL PROTECTED] = 'dnumber']] | [EMAIL PROTECTED] = 
$drelations/o:[EMAIL PROTECTED]'snumber']]" />
 
-    <xsl:if test="count($relatednodes) &gt; 0" >
-      <xsl:text>[</xsl:text><xsl:value-of select="@id" /><xsl:text>]</xsl:text>
+    <xsl:if test="$id != '' and (count($relatednodes) &gt; 0 or 
$org.mmbase.richtext.wiki.show_broken = 'true')" >
+      <xsl:text>[</xsl:text><xsl:apply-templates select="." 
mode="undecorateids" /><xsl:text>]</xsl:text>
     </xsl:if>
   </xsl:template>
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to