[ http://issues.apache.org/jira/browse/FOR-635?page=comments#action_12383339 ]
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/sample.fo 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: <xsl:choose> <!-- resources image dir --> <xsl:when test="starts-with(string(@src),'images/')"> <xsl:value-of select="concat($imagesdir,substring-after(@src,'images'))"/> </xsl:when> <!-- already absolute --> <xsl:when test="contains(string(@src),':') or starts-with(string(@src),'/')"> <xsl:value-of select="@src"/> </xsl:when> <!-- relative to document --> <xsl:otherwise><xsl:value-of select="concat($xmlbasedir,@src)"/></xsl:otherwise> </xsl:choose> > images not reproduced in PDFs, if sources are in xdocs/images directory > ----------------------------------------------------------------------- > > Key: FOR-635 > URL: http://issues.apache.org/jira/browse/FOR-635 > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira