Re: [css2xslfo-support] Headlines
Brought to you by:
wdonne
From: <wer...@re...> - 2005-05-17 10:28:53
|
Hi Andreas, I think it is because the top region has no height and is therefore not generated at all. The rest seems ok to me. Best regards, Werner. Andreas Jung wrote: > Hi, > > we are producing documents from HTML fragments where each fragment has a > unique ID and title. > In the output all fragments start on a new page. I would like that all > pages have the > corresponding ID and title somehow formatted as headline. Can I do that > with css2xslfo? > I tried to work with named strings but it does not work. Here is my code: > > <html> > <head> > <style type="text/css"> > // This is the main stylesheet for all export actions through FO > > h1 { > font-size: 12pt; > } > > div.document { > break-after: page; > hyphenation-remain-character-count: 3; > hyphenation-push-character-count: 3; > font-family: sans-serif; > } > > .kursiv { > font-style: italic; > } > > .strich { > text-decoration: underline; > } > > > div.top { > region: top; > display: none; > } > > div.top > span.mark:before { content: string(mark); } > > h1 { string-set: mark contents; } > > > </style> > </head> > > <body tal:define="print_what options/print_what; > was options/was|request/was|string:gldg; > vonID options/vonID|request/vonID|nothing; > bisID options/bisID|request/bisID|nothing; > "> > > <div class="top"> > <span class="mark" /> > </div> > > <h1>sucks</h1> > > .... > > > I would expect that 'sucks' appeared somewhere in the top region but the > string is treated like a normal > <h1> statement...any ideas? > > Thanks, > Andre > as -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |