absolute position in FOP and following/preceding text

Discussion in 'XML' started by TadPole, Nov 8, 2005.

  1. TadPole

    TadPole Guest

    I am using FOP to create PDF documents.

    I have the problem where I need to create line of text on a document in
    a certain line (absolute position), then the rest of the text needs to
    follow after that fixed line of text.

    What I am getting is the fixed line of text starting at the correct
    place, but then the rest of the text is then starting at the top of the
    document.

    Is there any way of getting the rest of the text to follow the line of
    the fixed line of text.

    The rest of the text can be in any format, and there may be another
    fixed line of text after the initial one, in these cases the text would
    have to follow the next fixed line of text.

    I am using MATCH templates, and cannot use for-each.

    XML example

    <fixed text 1>
    <text>bla fixed 1</text>
    <fixed text 1>
    <normal text 1>
    <text>bla normal 1</text>
    <normal text 1>
    <normal text 2>
    <text>bla normal 2</text>
    <normal text 2>
    <normal text 3>
    <text>bla normal 3</text>
    <normal text 3>
    <fixed text 2>
    <text>bla fixed 2</text>
    <fixed text 2>
    <normal text 4>
    <text>bla normal 4</text>
    <normal text 4>
    <normal text 5>
    <text>bla normal 5</text>
    <normal text 5>
    <normal text 6>
    <text>bla normal 6</text>
    <normal text 6>

    Document example

    -----------------------------------------top of doc
    ----------------------------------------------------------------


    bla fixed 1
    bla normal 1
    bla normal 2
    bla normal 3






    bla fixed 2

    bla normal 4
    bla normal 5
    bla normal 6


    ---------------------------------------------- end of doc
    ----------------------------------------------------------------
     
    TadPole, Nov 8, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luqman
    Replies:
    1
    Views:
    834
    Luqman
    Feb 7, 2006
  2. david graham

    IE5.5 and absolute position of a div

    david graham, Sep 11, 2003, in forum: HTML
    Replies:
    11
    Views:
    1,125
  3. Axel Wild
    Replies:
    1
    Views:
    514
    Alex McLintock
    Dec 23, 2003
  4. Pablo
    Replies:
    0
    Views:
    1,303
    Pablo
    Mar 28, 2007
  5. jobs
    Replies:
    1
    Views:
    602
    Collin Chung
    Aug 16, 2007
  6. jobs
    Replies:
    1
    Views:
    1,196
    Matt White
    Aug 17, 2007
  7. ziggs
    Replies:
    1
    Views:
    256
    Ken Schaefer
    Jul 2, 2003
  8. James Byrne
    Replies:
    3
    Views:
    900
    James Byrne
    Sep 14, 2010
Loading...