Re: [css2xslfo-support] Problem with regions and FOP 1.0
Brought to you by:
wdonne
From: Werner D. <wer...@pi...> - 2011-09-14 07:33:56
|
Hi Sergey, Thank you for the suggestion. I have added the following bug report for this: https://sourceforge.net/tracker/?func=detail&aid=3409061&group_id=117065&atid=676813. Best regards, Werner. On 14 Sep 2011, at 05:56, USHAKOV, Sergey wrote: > Thank you Werner, > > '@page' solved the problem for me. > > Do you mind adding an example of '@page' usage to your code snippets in some > future version of the manual to help other dumb copy-pasters like me avoid > this pitfall? :) > > Thanks again and best regards, > Sergey > > > ----- Original Message ----- > From: "Werner Donné" <wer...@pi...> > To: "USHAKOV, Sergey" <us...@in...> > Cc: <css...@li...> > Sent: Tuesday, September 13, 2011 8:30 PM > Subject: Re: [css2xslfo-support] Problem with regions and FOP 1.0 > > > Hi Sergey, > > The problem is in your document, but it isn't obvious. The page-setup > mechanism doesn't work because there are no @page rules at the beginning of > the stylesheet. There should be at least something this: > > @page > { > size: portrait; > } > > This is mentioned in paragraph 4 of section 4.1 of the manual. > > Best regards, > > Werner. > > On 13 Sep 2011, at 16:31, USHAKOV, Sergey wrote: > >> Werner, thank you for prompt response. >> >> I have prepared an abridged XHTML/CSS sample document that demonstrates >> the problem, at least for me :) >> Please see it attached. The FO is attached too. >> >> Thank you for your comments in advance, and sorry if the problem is in my >> html/css and obvious... >> >> Regards, >> Sergey >> >> >> >> ----- Original Message ----- From: "Werner Donné" >> <wer...@pi...> >> To: "USHAKOV, Sergey" <us...@in...> >> Cc: <css...@li...> >> Sent: Tuesday, September 13, 2011 10:50 AM >> Subject: Re: [css2xslfo-support] Problem with regions and FOP 1.0 >> >> >>> Hi Sergey, >>> >>> This would indicate that there is an element to which a region is >>> assigned and that is not one of the first children of the body element. >>> All region elements should come before the first element that is not a >>> region. If this is not causing the problem in your case, then I should >>> see the example in order to understand what is going on. >>> >>> Best regards, >>> >>> Werner. >>> >>> On 13 Sep 2011, at 07:34, USHAKOV, Sergey wrote: >>> >>>> And one more news. Direct conversion from xhtml to pdf with css2fopnew >>>> ends >>>> for me with the same exception. >>>> >>>> Regards, >>>> Sergey >>>> >>>> >>>> ----- Original Message ----- From: "USHAKOV, Sergey" >>>> <us...@in...> >>>> To: <css...@li...> >>>> Sent: Tuesday, September 13, 2011 7:16 AM >>>> Subject: Re: [css2xslfo-support] Problem with regions and FOP 1.0 >>>> >>>> >>>>> Just a short extra note. I did not try direct conversion to pdf using >>>>> css2fopnew yet. What I did was chain coversion, first with plain >>>>> css2xslfo >>>>> and then with FOP itself... >>>>> >>>>> Regards, >>>>> Sergey >>>>> >>>>> >>>>> ----- Original Message ----- From: "USHAKOV, Sergey" >>>>> <us...@in...> >>>>> To: <css...@li...> >>>>> Sent: Tuesday, September 13, 2011 6:59 AM >>>>> Subject: Problem with regions and FOP 1.0 >>>>> >>>>> >>>>>> Hi Werner, >>>>>> >>>>>> I haven't been using css2cslfo for quite a long time already. Having >>>>>> come >>>>>> back I tried using css2cslfo 1.6.2 with FOP 1.0 and ran into a problem >>>>>> with static regions. >>>>>> >>>>>> FOP is complaining with an exception >>>>>> javax.xml.transform.TransformerException: ... >>>>>> "{http://www.w3.org/1999/XSL/Format}static-content" is not a valid >>>>>> child >>>>>> of "fo:flow"! ... >>>>>> >>>>>> The approach I'm using is very close to your instructions in the "Page >>>>>> Regions" section of your manual. No extra options for css2cslfo. No >>>>>> extra >>>>>> options for FOP, just plain pdf generation. >>>>>> >>>>>> Can you reproduce this issue? If not, I'll go ahead with specifying my >>>>>> case in more detail... >>>>>> >>>>>> My best regards, >>>>>> Sergey >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>>>> Learn about the latest advances in developing for the >>>>> BlackBerry® mobile platform with sessions, labs & more. >>>>> See new tools and technologies. Register for BlackBerry® DevCon >>>>> today! >>>>> http://p.sf.net/sfu/rim-devcon-copy1 >>>>> _______________________________________________ >>>>> css2xslfo-support mailing list >>>>> css...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>>> Learn about the latest advances in developing for the >>>> BlackBerry® mobile platform with sessions, labs & more. >>>> See new tools and technologies. Register for BlackBerry® DevCon >>>> today! >>>> http://p.sf.net/sfu/rim-devcon-copy1 >>>> _______________________________________________ >>>> css2xslfo-support mailing list >>>> css...@li... >>>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >>> >>> -- >>> http://www.pincette.biz/ >>> Handling your documents with care, wherever you are. >>> >>> >>> ------------------------------------------------------------------------------ >>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >>> Learn about the latest advances in developing for the >>> BlackBerry® mobile platform with sessions, labs & more. >>> See new tools and technologies. Register for BlackBerry® DevCon >>> today! >>> http://p.sf.net/sfu/rim-devcon-copy1 >>> _______________________________________________ >>> css2xslfo-support mailing list >>> css...@li... >>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >> <test.xhtml><test.fo>------------------------------------------------------------------------------ >> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA >> Learn about the latest advances in developing for the >> BlackBerry® mobile platform with sessions, labs & more. >> See new tools and technologies. Register for BlackBerry® DevCon today! >> http://p.sf.net/sfu/rim-devcon-copy1 >> _______________________________________________ >> css2xslfo-support mailing list >> css...@li... >> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > > -- > http://www.pincette.biz/ > Handling your documents with care, wherever you are. > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support -- http://www.pincette.biz/ Handling your documents with care, wherever you are. |