diff options
-rwxr-xr-x | helpcontent2/settings.pmk | 2 | ||||
-rw-r--r-- | helpcontent2/source/auxiliary/main_transform.xsl | 37 | ||||
-rw-r--r-- | helpcontent2/util/makefile.mk | 2 |
3 files changed, 25 insertions, 16 deletions
diff --git a/helpcontent2/settings.pmk b/helpcontent2/settings.pmk index f7d5485374..47af399db6 100755 --- a/helpcontent2/settings.pmk +++ b/helpcontent2/settings.pmk @@ -1,6 +1,6 @@ .INCLUDE : $(INCCOM)$/aux_langs.mk -my_cp:=$(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/unoil.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/ridl.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/jurt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/xmlsearch.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/LuceneHelpWrapper.jar$ +my_cp:=$(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/juh.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/unoil.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/ridl.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/jurt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/xmlsearch.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/LuceneHelpWrapper.jar$ .IF "$(SYSTEM_LUCENE)" == "YES" my_cp!:=$(my_cp)$(PATH_SEPERATOR)$(LUCENE_CORE_JAR)$(PATH_SEPERATOR)$(LUCENE_ANALYZERS_JAR) .ELSE 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 --> diff --git a/helpcontent2/util/makefile.mk b/helpcontent2/util/makefile.mk index 74c23e0432..fbc9d80840 100644 --- a/helpcontent2/util/makefile.mk +++ b/helpcontent2/util/makefile.mk @@ -29,7 +29,7 @@ TARGET = plain_util ZIP1TARGET=helpxsl ZIP1FLAGS= -u -r ZIP1DIR=$(PRJ)$/source$/auxiliary -ZIP1LIST=main_transform*.xsl +ZIP1LIST=main_transform*.xsl idxcaption.xsl idxcontent.xsl # --- Targets ------------------------------------------------------ .INCLUDE : target.mk |