[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Please test DocBook XSL 1.70.1
Hello,
I think I just found a regression. In HTML output chunked by
html/chunk.xsl the relative image paths specified in imagedata/@fileref
are transformed to full paths in img/@src. This happens because the
keep.relative.image.uris param, with the default value 1 is ignored in
the template xsl:template/match="@fileref" from html/chunk-code.xsl. I
think the fix is to test the value of keep.relative.image.uris just like
in html/graphics.xsl. So the template should look like the following in
html/chunk-code.xsl:
<xsl:template match="@fileref">
<!-- need a check for absolute urls -->
<xsl:choose>
<xsl:when test="contains(., ':')">
<!-- it has a uri scheme so it is an absolute uri -->
<xsl:value-of select="."/>
</xsl:when>
<xsl:when test="$keep.relative.image.uris != 0">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<!-- its a relative uri -->
<xsl:call-template name="relative-uri">
<xsl:with-param name="destdir">
<xsl:call-template name="dbhtml-dir">
<xsl:with-param name="context" select=".."/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Best regards,
Sorin
http://www.oxygenxml.com/
Michael(tm) Smith wrote:
> Please take some time to download and test version 1.70.1 of the
> DocBook XSL stylesheets. If there are any bugs or regressions
> introduced in 1.70.0 in 1.70.1, it would be best to get them
> identified and fixed as soon as possible.
>
> You can do a single-user install/uninstall of 1.70.1 by following
> these steps:
>
> 1. Download and uncompress the release from:
>
> http://sourceforge.net/project/showfiles.php?group_id=21935&package_id=16608
>
> You can uncompress the release file anywhere on your system.
> It doesn't need to go in /usr/local (or wherever) and you
> should not put it under /usr/share/xml or anywhere that's
> under the control of your OS's package-management system.
> It's fine just to put it in your home directory.
>
> 2. Run in the install.sh file in the release directory.
>
> $ ./install.sh
>
> That will set up your XML and SGML catalog environment so
> that it temporarily points to the place where you installed
> the 1.70.1. (The changes the install.sh file makes are
> non-destructive; it does not make any changes to your "real"
> catalog environment.)
>
> 3. After you're done testing with 1.70.1, if you want to restore
> your catalog environment to its original settings, you can do
> so by running the uninstall.sh file:
>
> $ ./uninstall.sh
>
> Thanks,
>
> --Mike
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]