Re: [css2xslfo-support] producing empty FO output
Brought to you by:
wdonne
From: Brad C. <bk...@mu...> - 2008-10-15 21:10:13
|
aro...@cl... wrote: > > Hi Brad, > > That gives me a clue. Perhaps I'm misunderstanding what css2xslfo is > supposed to do. I've looked at PrinceXML and "Flying Saucer" both of > which produced a pdf of the xml source file and honored > "page-brake-inside" directives. > > Why should I have to mark up my CSS and XML with various regions? I > could see how it would be useful for footnotes and book printing but > why am I forced to add these? I think you only have to have one region defined, that is 'body'. I think the default body region is the entire page, and css2xslfo just needs to know which element (and children) goes into the body region. I think the default mime-type is 'xhtml', so probably css2xslfo is looking for a <body> element. > > I noticed that the "manual.xhtml" that comes with the css2xslfo > download has many @page directives with regions and the like. It's > able to parse and produce an fo when I invoke a similar command from > the terminal. I don't think that's a very good example, it has lots of complicated regions. I've only used css2xslfo to generate pdfs from xhtml, but it should work with xml as long as you tell it how to display your xml elements. > > I looked through the css2xslfo manual and nothing jumped out at me as > to why I'd have to set regions... Actually, I'm looking at the simplest code I have in-use. It's xhtml and the only unusual css is declaring the page size: <style type="text/css"> @page { margin:0.15in 0.3in 0.15in 0.3in; size: 8.5in 11in; } and the html doesn't have any special styles on it, the <body> element gets rendered on the entire page. > > I *could* probably get permission to post our .css file but I'd prefer > to understand what minimum elements I'd need to setup in it. I could > probably just do that without you having to look over some alien .css > file. I don't know what the minimum is for xml, but at least for xhtml, the minimum appears to be setting the page size (and maybe only that because the default is A4?) -- Brad Clements, bk...@mu... (315)268-1000 http://www.murkworks.com AOL-IM: BKClements |