Re: [css2xslfo-support] producing empty FO output
Brought to you by:
wdonne
From: Werner D. <wer...@re...> - 2008-10-16 07:40:03
|
Hi Aaron, If you add the following rule for the "visits" element it should work: visits { region: body; } The notion of having regions stems from the fact that an XSL-FO document is made up of regions and page sequences. For each new page sequence I have to regenerate stuff starting from the element that represents the body region. I understand you are annoyed by that. It is, however, not so easy to choose a default body region. At first sight the document element would be a good candidate, but some XML languages define some preliminary meta information. As a consequence, a lower element may have to be the body region. I could scan the CSS files to check if some element already has been assigned as the body region and use the document element if there isn't one. However, it is not certain the rule would apply to any element at all and moreover, the "style" attribute could have been used inside the document to assign the body region. In order to solve this I would have to examine the complete document first. This is not possible, because the tool works as a streaming filter. That is to reduce memory consumption for very large documents. Best regards, Werner. On 15 Oct 2008, at 20:48, aro...@cl... wrote: > > Hi, > > I'm just getting started trying to use css2xslfo. At the moment, I > just want to see it produce an FO document but I'm getting a file > with zero bytes. > > I tried the following: > > java -Dbe.re.stack -jar css2xslfo1_6.jar visitDump.xml -fo > visitDump.fo > > I don't get any warnings of any sort. It chugs away but then creates > an empty "visitDump.fo" file. > > The xml source file is not xhtml, just pure xml. It looks something > like so: > > <?xml version="1.0" encoding="UTF-8"?> > <?xml-stylesheet href="visitDump.css" type="text/css" media="all"?> > <visits> > <protocol> > <protocol_descriptor>Hello</protocol_descriptor> > ... > </protocol> > ... > </visits> > > Ultimately I'd like to connect it to FOP to produce a PDF but right > now, I'm not able to get it to do the FO part yet. Any ideas on what > I might be missing? > > Thanks in advance, > -- > Aaron > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- Werner Donné -- Re http://www.pincette.biz Engelbeekstraat 8 http://www.re.be BE-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |