Author: michiel
Date: 2009-05-13 10:45:47 +0200 (Wed, 13 May 2009)
New Revision: 35134
Modified:
mmbase/trunk/config/xslt/docbook2block.xslt
mmbase/trunk/src/org/mmbase/framework/DocumentationRenderer.java
Log:
Supporting olink and new structure in svn
Modified: mmbase/trunk/config/xslt/docbook2block.xslt
===================================================================
--- mmbase/trunk/config/xslt/docbook2block.xslt 2009-05-13 08:31:43 UTC (rev
35133)
+++ mmbase/trunk/config/xslt/docbook2block.xslt 2009-05-13 08:45:47 UTC (rev
35134)
@@ -41,6 +41,9 @@
<xsl:variable name="lowercase">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="uppercase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
+ <xsl:variable name="dash">-</xsl:variable>
+ <xsl:variable name="slash">/</xsl:variable>
+
<xsl:template match="article">
<div class="mm_docbook" >
<h1><xsl:value-of select="articleinfo/title" /></h1>
@@ -109,6 +112,22 @@
</ol>
</xsl:template>
+
+ <xsl:template match="olink">
+ <xsl:variable name="target"><xsl:value-of select="translate(@targetdoc,
$dash, $slash)" /></xsl:variable>
+ <xsl:variable
name="targetxml">http://scm.mmbase.org/view/*checkout*/mmbase/trunk/documentation/src/docbook/<xsl:value-of
select="$target" />.xml</xsl:variable>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="url">
+ <xsl:with-param name="url"><xsl:value-of select="$target"
/>.html</xsl:with-param>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:value-of
select="document($targetxml)/article/articleinfo/title/text()" />
+ <xsl:text> (</xsl:text><xsl:value-of select="@targetdoc" /><xsl:text>).
</xsl:text>
+ </a>
+ <xsl:apply-templates />
+ </xsl:template>
+
<xsl:template match="variablelist">
<dl class="variable">
<xsl:apply-templates />
Modified: mmbase/trunk/src/org/mmbase/framework/DocumentationRenderer.java
===================================================================
--- mmbase/trunk/src/org/mmbase/framework/DocumentationRenderer.java
2009-05-13 08:31:43 UTC (rev 35133)
+++ mmbase/trunk/src/org/mmbase/framework/DocumentationRenderer.java
2009-05-13 08:45:47 UTC (rev 35134)
@@ -31,7 +31,7 @@
private static final Logger log =
Logging.getLoggerInstance(DocumentationRenderer.class);
private String repository =
"http://scm.mmbase.org/view/*checkout*/mmbase/trunk/";
- private String module = "documentation";
+ private String module = "documentation/src/docbook";
private String docbook = null;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs