[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: quality/krazy2/stylesheets
From: Bertjan Broeksema <b.broeksema () home ! nl>
Date: 2009-05-22 13:51:18
Message-ID: 1243000278.623073.21272.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 971481 by bbroeksema:
Fix the lexer links. Lexer doesn't use the concept of components in the same
sense as we do for EBN. To add another mapping have a look at
stylesheets/krazy2ebn.xsl lines 28-37.
M +15 -4 krazy2ebn.xsl
--- trunk/quality/krazy2/stylesheets/krazy2ebn.xsl #971480:971481
@@ -20,18 +20,29 @@
method="xhtml"
omit-xml-declaration="yes"
version="1.0" />
-
+
<xsl:function name="ebn:createLexerLink" as="xsd:string">
<xsl:param name="file" as="xsd:string"/>
<xsl:param name="line" as="xsd:integer" />
-
+
+ <xsl:variable name="lexerComponent">
+ <xsl:choose>
+ <xsl:when test="$component eq 'kde-4.x'">
+ <xsl:value-of select="concat('', 'KDE')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$component" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<xsl:choose>
<xsl:when test="$line eq -1" >
- <xsl:value-of select="concat('http://lxr.kde.org/source/', $component, '/', \
$module, '/', $submodule, '/', $file)" /> + <xsl:value-of \
select="concat('http://lxr.kde.org/source/', $lexerComponent, '/', $module, '/', \
$submodule, '/', $file)" /> </xsl:when>
<xsl:otherwise>
<xsl:value-of
- select="concat('http://lxr.kde.org/source/', $component, '/', $module, \
'/', $submodule, '/', $file, '#', $line)" /> + \
select="concat('http://lxr.kde.org/source/', $lexerComponent, '/', $module, '/', \
$submodule, '/', $file, '#', $line)" /> </xsl:otherwise>
</xsl:choose>
</xsl:function>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic