Hi,

(Thank you very much, Camille!)

I would like to put the CHAPTER NUMBER at the outside edge of the ODD Page. 
Maybe different number has different (background) color. 

This means:

On all of the “ODD” pages in CHAPTER ONE: you can see one very small image at 
the right (outside) edge of the page. The number “1” is in the image because it 
is in chapter one.  Maybe the image has BLUE background color. The image has a 
distance of “3in” to the very top of the page. 

On the “ODD” page in CHAPTER TWO it is the similar: the very small image should 
be at the right (outside) edge of the page. But the Distance from the image to 
the very top of the page is “4in”. Now the number “2” is in the image because 
it is chapter 2. Image color:  GREEN.

I have all of the images with the correct chapter numbers and the right color. 
How to put the images in the right position?

Do I need my own images? Or the “Docbook-XSL” code can produce them?

Is it possible to get it or get something similar? 

I tried but failed. (My code is at the end of the mail.)  Thank you very much 
for any help.

Lily


The following code does not produce the layout I want because there is a big 
empty space vertically between “paragraph two” and the small image. 


In “myStylesheet.xsl”: 
<xsl:attribute-set name="margin.note.properties">
    <xsl:attribute name="margin-left">6in</xsl:attribute>    
    <xsl:attribute name="margin-top">2.5in</xsl:attribute>
  </xsl:attribute-set>  

In “myDocBook.xml”: 
<?xml version="1.0" encoding="UTF-8"?>
<book version="5.0" xml:lang="de" xmlns="http://docbook.org/ns/docbook";
    xmlns:xi="http://www.w3.org/2001/XInclude";>
       
    <title>The Big Book Title</title>      
    <chapter>
        <title>chapter one title</title>    
        <para>paragraph one</para>
        <para>paragraph two</para>
        <sidebar>
            <title></title>
            <?dbfo float-type="margin.note"?>
            <para>
                <inlinemediaobject>
                    <imageobject>
                        <imagedata 
fileref="../images/blue_number_1.png"></imagedata>
                    </imageobject>
                </inlinemediaobject>
            </para>
        </sidebar>
        <para>paragraph three</para>    
    </chapter>
    
    <chapter>
        <title>chapter two title</title>    
        <para>paragraph one</para>   
        <para>paragraph two</para>
        <sidebar>
            <title></title>
            <?dbfo float-type="margin.note"?>
            <para>
                <inlinemediaobject>
                    <imageobject>
                        <imagedata 
fileref="../images/green_number_2.png"></imagedata>
                    </imageobject>
                </inlinemediaobject>
            </para>
        </sidebar>
        <para>paragraph three</para>  
        <para>paragraph four</para>        
    </chapter>
    
    </book>

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to