OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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
bobs@sagehill.net


----- Original Message ----- 
From: "Jacques" <jacques@foucry.net>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
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èce sombre, qui
cherche un chat noir. Qui n'existe pas.
               P. Desproges





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]