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

Modified Files:
        2rich.xslt 2xhtml.xslt mmxf2rich.xslt 
Log Message:
functionalaty to (handyer) maintain links in wiki-syntax


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.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- 2rich.xslt  25 Oct 2005 21:16:45 -0000      1.1
+++ 2rich.xslt  1 Apr 2008 14:52:41 -0000       1.2
@@ -3,7 +3,7 @@
   org.mmbase.bridge.util.Generator, and the XSL is invoked by FormatterTag.
 
   @author:  Michiel Meeuwissen
-  @version: $Id: 2rich.xslt,v 1.1 2005/10/25 21:16:45 michiel Exp $
+  @version: $Id: 2rich.xslt,v 1.2 2008/04/01 14:52:41 michiel Exp $
   @since:   MMBase-1.6
 -->
 <xsl:stylesheet  
@@ -19,6 +19,7 @@
   <xsl:output method="text" omit-xml-declaration="yes" /> <!-- xhtml is a form 
of xml -->
 
   <xsl:param name="cloud">mmbase</xsl:param>
+  <xsl:param name="show_broken">false</xsl:param>
 
   <xsl:template match="o:objects">
     <div class="objects">
@@ -80,7 +81,7 @@
     <xsl:variable name="relatednodes" select="[EMAIL PROTECTED] = 
$srelations/o:[EMAIL PROTECTED] = 'dnumber']] | [EMAIL PROTECTED] = 
$drelations/o:[EMAIL PROTECTED]'snumber']]" />
     
     <xsl:choose>
-      <xsl:when test="count($relatednodes) &gt; 0" >
+      <xsl:when test="count($relatednodes) &gt; 0 or $show_broken = 'true'" >
         <xsl:text>[</xsl:text><xsl:value-of select="@id" />
         <xsl:if test="count(*|text()) &gt; 0">
           <xsl:text>:</xsl:text>


Index: 2xhtml.xslt
===================================================================
RCS file: /var/cvs/applications/richtext/config/xslt/2xhtml.xslt,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- 2xhtml.xslt 20 Jun 2007 14:29:55 -0000      1.25
+++ 2xhtml.xslt 1 Apr 2008 14:52:41 -0000       1.26
@@ -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.25 2007/06/20 14:29:55 michiel Exp $
+  @version: $Id: 2xhtml.xslt,v 1.26 2008/04/01 14:52:41 michiel Exp $
   @since:   MMBase-1.6
 -->
 <xsl:stylesheet
@@ -107,7 +107,7 @@
       Produces an URL to point to a certain object.
   -->
   <xsl:template match="o:object" mode="url">
-    <xsl:value-of select="node:function($cloud, string(@id ), 'url', 
$request)" />
+    <xsl:value-of select="node:function($cloud, string(@id), 'url', $request)" 
/>
   </xsl:template>
 
   <xsl:template match="o:[EMAIL PROTECTED] = 'images']|o:[EMAIL PROTECTED] 
='attachments']|o:[EMAIL PROTECTED]'icaches']" mode="url">   


Index: mmxf2rich.xslt
===================================================================
RCS file: /var/cvs/applications/richtext/config/xslt/mmxf2rich.xslt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- mmxf2rich.xslt      23 Jan 2007 16:21:39 -0000      1.3
+++ mmxf2rich.xslt      1 Apr 2008 14:52:41 -0000       1.4
@@ -2,7 +2,7 @@
   This translates a mmbase XML field to enriched ASCII
 
   @author: Michiel Meeuwissen
-  @version: $Id: mmxf2rich.xslt,v 1.3 2007/01/23 16:21:39 michiel Exp $
+  @version: $Id: mmxf2rich.xslt,v 1.4 2008/04/01 14:52:41 michiel Exp $
   @since:  MMBase-1.6   
 -->
 <xsl:stylesheet 
@@ -28,8 +28,8 @@
     <xsl:param name="depth" />
     <xsl:value-of select="$depth" /><xsl:text> </xsl:text><xsl:apply-templates 
select="." mode="rels" /><xsl:value-of select="mmxf:h" />
     <xsl:text>&#xA;&#xA;</xsl:text>
-    <xsl:apply-templates select = "mmxf:p|mmxf:ul|mmxf:ol|mmxf:table" />
-    <xsl:apply-templates select = "mmxf:section">
+    <xsl:apply-templates select="mmxf:p|mmxf:ul|mmxf:ol|mmxf:table" />
+    <xsl:apply-templates select="mmxf:section">
       <xsl:with-param name="depth">$<xsl:value-of select="$depth" 
/></xsl:with-param>
     </xsl:apply-templates>
   </xsl:template>
@@ -39,13 +39,18 @@
     <xsl:text>_</xsl:text><xsl:value-of select = "." /><xsl:text>_</xsl:text>
   </xsl:template>
   
+  <xsl:template match="mmxf:a" >
+    bla bla
+    <xsl:apply-templates select="*" />
+  </xsl:template>
+
   <xsl:template match="mmxf:ul" >
     <xsl:text>&#xA;</xsl:text>
-    <xsl:apply-templates select = "mmxf:li" mode="ul" />
+    <xsl:apply-templates select="mmxf:li" mode="ul" />
   </xsl:template>
   <xsl:template match="mmxf:ol" >
     <xsl:text>&#xA;</xsl:text>
-    <xsl:apply-templates select = "mmxf:li" mode="ol" />
+    <xsl:apply-templates select="mmxf:li" mode="ol" />
   </xsl:template>
   
   <xsl:template match="mmxf:li" mode="ul" >
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to