On 1/22/07, Laura Stewart <[EMAIL PROTECTED]> wrote:
On 1/22/07, Andrew McIntyre <[EMAIL PROTECTED]> wrote:
>
> As for the manuals, the image is referenced in the copyright topic in
> each book, e.g. rrefcopyright.dita in the reference manual. For the
> PDF and HTML book, the logo is also inserted into the cover page by
> the dita2fo-shell.xsl stylesheet.
Yes, we will want to make the logos accessible for the PDF and HTML
book. Is there a way to modify the dita2fo-shell.xsl stylesheet? Who
can do that?
Where is it located?
It's in the lib directory of the doc tree. dita2fo-shell.xsl may not
be the place to put it, though, because there is an intermediate stage
of processing for the PDFs and HTML books. The logo is inserted onto
the cover when dita2fo-shell.xsl adds an <fo:external-graphic> element
to the intermediate XSL-FO document. I took a look at the spec [1] for
XSL-FO and there didn't appear to be a straightforward way to specify
any alternate text for an external graphic. I could think of a couple
of ways to do this, but searching the web didn't turn up any sort of
standard approach.
Also, FOP, which generates the PDF from the XSL-FO, and our HTML Book
stylesheet would need to recognize any approach to implementing this
and do the right thing with the output to their respective formats.
You could try asking on the FOP list if FOP supports alternate text
for graphics and if so, how the alternate text is specified. Once that
has been determined, we could make our HTML Book stylesheet generate
the correct HTML from the XSL-FO that conforms to FOP's approach to
specifying alternate text.
andrew
[1] http://www.w3.org/TR/2000/CR-xsl-20001121/slice6.html#fo_external-graphic