Re: [docbook-apps] to RTF transformation and other problems

From
"Cob Rtayton"
Date
2004-09-08T08:49:43+00:00
ID
019601c49580$b2918410$6401a8c0@toshiro
Thread
Re: [docbook-apps] to RTF transformation and other problems
Hi Jacques,
You didn't mention what your XSL-FO processor was.  You mentioned xsltproc,
but it only  produceds the fo file.

Are you using FOP?  If so, you might try a dimension unit other than px.
That unit is implementation dependent.

Bob Stayton
Sagehill Enterprises
DocBook Consulting


----- Original Message ----- 
From: "Jacques" <>
To: "docbook-apps" <>
Sent: Tuesday, September 07, 2004 3:36 PM
Subject: [docbook-apps] 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