[daisy] PDF size info
Marc Portier
mpo at outerthought.org
Fri May 11 09:24:14 CDT 2007
Greg Sieranski wrote:
> When you include a pdf in a daisy page it attaches the type and size of
> the file (application/pdf, 2.0 MB, info
> <http://www.samueliinstitute.org/news/150-SIIB.html>). I would like to
> remove this information and am wondering if someone could point me to
> the correct file where this is being included.
>
I think you're looking for document-to-html.xsl
(./daisywiki/webapp/daisy/resources/skins/YOURS/xslt/document-to-html.xsl)
Taking the opportunity to educate the masses:
Rather then changing the one in daisy_home, you should provide your own
version in your skin (euh, the rest of the site looks like you already
did that, nice work!)
for easy upgrades to new daisy versions that one should just xsl:import
the basic one at daisyskin:(default)/xslt/document-to-html.xsl and only
override those templates you want to change
in there you should provide your own version of the
<xsl:template match="a[p:linkInfo/@documentType='Attachment']"
mode="PartContent">
And finally some more general help for more cases like this:
where to find the correct matchers in the bulk of xsl's around isn't
always easy, but sometimes a targeted search on the xsl's helps you a
bit, in this case
$ find ${DAISY_HOME} -type f -name \*xsl |xargs grep -l 'mime'
$ find ${DAISY_HOME} -type f -name \*xsl |xargs grep -l 'Attachment'
would have narrowed the set effectively.
HTH,
-marc=
More information about the daisy
mailing list