← Prev in month ← Prev in thread

to RTF transformation and other problems

From
Kacques
Date
2004-09-07T22:36:30+00:00
ID
r02010300-1035-556DA26E011E11D9AD63000393195D06@[192.168.1.7]
Thread
to RTF transformation and other problems
Hi list,

I am trying to add a logo on the header of my book.

To do that, I made a custom-layer.

When I try to transform my source file with this custom layer to do a
PDF file (using xsltproc), the logo does not appear.

When i try to transform the same source file with my custom layer to do
a RTF file (using xfc), my logo appear, but there is no left marging.

This is my custom layer file :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
    <xsl:param name="body.margin.top">1in</xsl:param>
    <xsl:param name="region.before.extent">1in</xsl:param>
    <xsl:template name="header.content">
        <xsl:param name="pageclass" select="''"/>
        <xsl:param name="sequence" select="''"/>
        <xsl:param name="position" select="''"/>
        <xsl:param name="gentext-key" select="''"/>
        <xsl:choose>
            <xsl:when test="$sequence = 'odd' and $position = 'left'">
                <fo:external-graphic
xmlns:fo="http://www.w3.org/1999/XSL/Format"
src="/Users/jacques/Documents/BO/images/logo-stk.png" width="60px"
height="33px"/>
            </xsl:when>
            <xsl:when test="$sequence = 'even' and $position = 'right'">
            <fo:external-graphic
xmlns:fo="http://www.w3.org/1999/XSL/Format"
src="/Users/jacques/Documents/BO/images/logo-stk.png" width="60px"
height="33px"/>
            </xsl:when>
        </xsl:choose>
    </xsl:template>
</xsl:stylesheet>

Thanks in advance,
Jacques
-- 
PHYSIQUE QUANTIQUE : c'est un homme aveugle, dans une pi鋃e sombre, qui cherche un chat noir. Qui n'existe pas.
               P. Desproges
← Prev in month ← Prev in thread