[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Images not showing
On Friday 24 June 2005 10:45, Sean Wheller wrote: > On Friday 24 June 2005 09:59, Sean Wheller wrote: > > I can't understand why the ../../ is being removed from the path in the > > HTML output. Does anyone know why this happens? > > Thinking this may be a xsl bug I switched back to 1.65.1 from 1.66.1.-1. > > Now the images show as expected. In other words with 1.65.1 the value of > the @fileref for imagedata elements is preserved in the transformation > while in 1.66.1-1 it is not. > > Is this a bug or a feature ? Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. This is the section from replaced in /usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- new strippath template --> <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template>Hello, Think we have found the problem in the strippath template. This template is not a good idea IMHO. Is there a way, other than overwriting in a custom layer, to enable / disable strippath. share/xml/docbook/stylesheet/nwalsh/common/common.xsl <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:choose> <xsl:when test="contains($filename, '/../')"> <xsl:call-template name="strippath"> <xsl:with-param name="filename"> <xsl:call-template name="getdir"> <xsl:with-param name="filename" select="substring-before($filename, '/../')"/> </xsl:call-template> <xsl:value-of select="substring-after($filename, '/../')"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$filename"/> </xsl:otherwise> </xsl:choose> </xsl:template> in order for our images to work we had to write the following in our custom layer. <xsl:template name="strippath"> <xsl:param name="filename" select="''"/> <xsl:value-of select="$filename"/> </xsl:template> -- Sean Wheller sean@enbaya.co.za http://www.enbaya.co.za
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]