forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Gardler (JIRA)" <>
Subject [jira] Commented: (FOR-635) images not reproduced in PDFs, if sources are in xdocs/images directory
Date Sat, 13 May 2006 01:29:09 GMT
    [ ] 

Ross Gardler commented on FOR-635:

(some notes I'm working on about 3 issues at once due to Forrest Friday and IRC - need this
so we don't forget what we have discovered)

Looking at http://localhost:8888/samples/

we see that an xdoc entry of:

<icon height="22" width="26" src="../images/icon.png" alt="feather"/>

gets converted to an fo entry of:

<fo:external-graphic src="D:\tmp\forrest/src/documentation/content/xdocs/samples/../images/icon.png"
height="22" width="26"/>

This happens because of document-to-fo.xsl:

        <!-- resources image dir -->
        <xsl:when test="starts-with(string(@src),'images/')">
          <xsl:value-of select="concat($imagesdir,substring-after(@src,'images'))"/>
        <!-- already absolute -->
        <xsl:when test="contains(string(@src),':') or starts-with(string(@src),'/')">
          <xsl:value-of select="@src"/>
        <!-- relative to document -->
        <xsl:otherwise><xsl:value-of select="concat($xmlbasedir,@src)"/></xsl:otherwise>

> images not reproduced in PDFs, if sources are in xdocs/images directory
> -----------------------------------------------------------------------
>          Key: FOR-635
>          URL:
>      Project: Forrest
>         Type: Bug

>   Components: Documentation and website
>     Versions: 0.7, 0.8-dev
>     Reporter: David Crossley
>     Priority: Minor
>      Fix For: 0.8-dev

> We used to enable images to be placed in the xdocs/images directory. However, now they
are intended to go in the resources/images directory instead. Both methods will work for html
pages, but  only the latter method for the PDF pages.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message