[css2xslfo-support] Headlines
Brought to you by:
wdonne
From: Andreas J. <an...@an...> - 2005-05-17 09:32:29
|
Hi, we are producing documents from HTML fragments where each fragment has a=20 unique ID and title. In the output all fragments start on a new page. I would like that all=20 pages have the corresponding ID and title somehow formatted as headline. Can I do that=20 with css2xslfo? I tried to work with named strings but it does not work. Here is my code: <html> <head> <style type=3D"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=3D"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=3D"top"> <span class=3D"mark" /> </div> <h1>sucks</h1> .... I would expect that 'sucks' appeared somewhere in the top region but the=20 string is treated like a normal <h1> statement...any ideas? Thanks, Andreas |