[daisy] Query styling for XSL-FO
Caleb Callaway
caleb at autometrix.com
Fri Apr 13 17:49:12 CDT 2007
Hi there, I've been working with some custom styling for PDFs, and run into
a couple issues.
I'm trying to add a thumbnail image (part of the document type) to a query
result. The best way that I can figure out to do this is with a style_hint
option. Using this code works when generating an HTML document:
<img
src="{$searchResultBasePath}{@documentId}/version/live/part/ImageThumbnail/d
ata"/>
Using this code in the XSL-FO query styling, however, does not:
<fo:external-graphic
src="url('{$searchResultBasePath}{@documentId}/version/live/part/ImageThumbn
ail/data')" />
It doesn't render, saying "Could not find variable with the name of
searchResultBasePath" If I hardcode the equivalent of the
$searchResultBasePath, the images are included perfectly. I have not touched
the sitemaps (*grins and waves to Bruno*), but haven't found anything that
looks out of place in them, either.
In trying to find the problem, I've discovered that modifications to the
query-styling-html.xsl file only take effect for the first few minutes the
wiki is started. After that, the changes are ignored until the wiki is
restarted. Changes to query-styling-xslfo.xsl, however, are implemented
immediately, and consistently. Don't know if it's relevant or not...
I'm also having problems with GIF images not being included--the text is
laid out nicely around where the image should be, but there's just a blank
spot instead of the graphic. JPEG images are included perfectly.
More information about the daisy
mailing list