summaryrefslogtreecommitdiff
path: root/helpcontent2/source/auxiliary
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-12-10 14:25:11 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-12-10 14:25:11 +0000
commit8c1e2dc80cb9fd0293776c3ae0505dd80b1f6d0d (patch)
tree21534fc3e042461e3939359c52da3f9d76a82a03 /helpcontent2/source/auxiliary
parent31d4197292315181f993b5504a6b5bc6d3af17e7 (diff)
CWS-TOOLING: integrate CWS ab65
2008-12-04 12:15:24 +0100 ab r264832 : #i83626# Removed warning 2008-12-04 12:04:09 +0100 ab r264830 : #i83626# Changed search result score handling 2008-11-28 13:37:09 +0100 ab r264548 : #i83626# Added missing juh.jar 2008-11-26 14:37:07 +0100 ab r264388 : #i83626# Added HelpComponent.java 2008-11-21 13:07:19 +0100 ab r264129 : #i83626# Fixed File URL versus system path confusion that made search operations fail on Unix 2008-11-19 12:22:10 +0100 ab r263978 : #i83627# Removed warning 2008-11-19 12:06:41 +0100 ab r263975 : #i83627# Removed warnings 2008-11-19 11:28:46 +0100 ab r263971 : #i83627# Support images in extension help 2008-11-11 11:48:21 +0100 ab r263551 : #i83626# Full text search in extension help
Diffstat (limited to 'helpcontent2/source/auxiliary')
-rw-r--r--helpcontent2/source/auxiliary/main_transform.xsl37
1 files changed, 23 insertions, 14 deletions
diff --git a/helpcontent2/source/auxiliary/main_transform.xsl b/helpcontent2/source/auxiliary/main_transform.xsl
index e9d141934e..4ff4dfab8b 100644
--- a/helpcontent2/source/auxiliary/main_transform.xsl
+++ b/helpcontent2/source/auxiliary/main_transform.xsl
@@ -108,7 +108,7 @@
</xsl:choose>
</xsl:variable>
-<!-- the other parameters given by the help caller -->
+ <!-- the other parameters given by the help caller -->
<xsl:param name="System" select="'WIN'"/>
<xsl:param name="productname" select="'Office'"/>
<xsl:param name="productversion" select="''"/>
@@ -132,9 +132,11 @@
<xsl:param name="Language" select="'en-US'"/>
<xsl:variable name="lang" select="$Language"/>
+<xsl:param name="ExtensionId" select="''"/>
+<xsl:param name="ExtensionPath" select="''"/>
-<!-- parts of help and image urls -->
+ <!-- parts of help and image urls -->
<xsl:variable name="help_url_prefix" select="'vnd.sun.star.help://'"/>
<xsl:variable name="img_url_prefix" select="concat('vnd.sun.star.pkg://',$imgrepos,'/')"/>
<xsl:variable name="urlpost" select="concat('?Language=',$lang,$am,'System=',$System,$am,'UseDB=no')"/>
@@ -811,18 +813,25 @@
<xsl:with-param name="s"><xsl:value-of select="@src"/></xsl:with-param>
</xsl:call-template>
</xsl:variable>
-
- <xsl:variable name="src">
- <xsl:choose>
- <xsl:when test="(@localize='true') and not($lang='en-US')">
- <xsl:value-of select="concat($img_url_prefix,$fpath,$lang,'/',$fname)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat($img_url_prefix,$fpath,$fname)"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
+
+ <xsl:variable name="src">
+ <xsl:choose>
+ <xsl:when test="not($ExtensionId='') and starts-with(@src,$ExtensionId)">
+ <xsl:value-of select="concat($ExtensionPath,'/',@src)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="(@localize='true') and not($lang='en-US')">
+ <xsl:value-of select="concat($img_url_prefix,$fpath,$lang,'/',$fname)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="concat($img_url_prefix,$fpath,$fname)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<!--<xsl:variable name="src"><xsl:value-of select="concat($img_url_prefix,@src)"/></xsl:variable>-->
<xsl:variable name="alt"><xsl:value-of select="./alt"/></xsl:variable>
<xsl:variable name="width" select="''"/> <!-- Images don't all have the correct size -->