xsl-list
[Top] [All Lists]

[xsl] Re: XSL-FO: Creating Marginalias with Apache FOP

2010-11-05 04:56:50
Hello Ken,

thank you for your answer.

I corrected my xml:
(the number and order of maintextX and marginaliaX varies):

<root>
  ...
  <body>
    <marginalia1>number</marginalia1>
    <title>title</title>
    <body_info>
      <maintext1>ipsum lorem</maintext1>
      <maintext2>consectetur</maintext2>

      <marginalia2>ut enim</marginalia2>  
      <maintext2>consequat r</maintext2>
      <maintext3>consequat r</maintext3>

      <marginalia3>ut enim</marginalia1>
      <maintext4>consequat r</maintext4>    
    <body_info>
  </body>
  ...
</root>

My PDF output should look like this:

-----------------------------------------------
| <marginalia1> | (Nested table:) <title>     |
|               |-----------------------------|
|               | (Nested table:) <maintext1> |
|               |-----------------------------|
|               | (Nested table:) <maintext2> |
|---------------------------------------------|
| <marginalia2> | (Nested table:) <maintext2> |
|               |-----------------------------|
|               | (Nested table:) <maintext3> |
|---------------------------------------------|
| <marginalia3> | (Nested table:) <maintext4> |
-----------------------------------------------
 

You need the XSLT 2.0 grouping facility using group-starting-with="", 
but honestly I can't mock up anything with the markup you've 
posted.  Where is <marginalia3>?  Do all of the elements always have 
unique names, or did you make them unique with numeric extensions 
only to distinguish them?

Yes, all of the elements have unique names.


Please post well-formed XML with *exactly* the markup you're planning 
to use, and we'll understand that the empty lines represent separate 
table rows.

The empty lines had no meaning, so I removed them.

Thank you very much,
Gerhard




-- 
GMX DSL Doppel-Flat ab 19,99 &euro;/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>