Re: [css2xslfo-support] No output from CSStoXSLFO.convert(...)
Brought to you by:
wdonne
From: Cornelius H. <ha...@ic...> - 2006-11-13 10:56:17
|
Hi Werner, now I add the proper link element to the head of my documents and it's=20 working like a charm. Thanks a lot for your fast answers and for this=20 great software! Best regards Conny Werner Donn=E9 wrote: > Hi Conny, >=20 > Both your propositions would work. Without amending the input > document you would have to go via the User Agent style sheet > way. That is still possible if you take the xhtml.css and > xhtml_print.css files from the CSSToXSLFO distribution and > put them in a central place. All your style sheets would then > have to import xhtml_print.css and themselves be speficied as > User Agent style sheet. >=20 > Best regards, >=20 > Werner. >=20 > Cornelius Hald wrote: >> Hi Werner, >> >> thanks for the quick answer! It seems that I misunderstood the meaning= =20 >> of User Agent style sheet. I thought, I could have a xhtml document=20 >> without linked css and then somehow link it using this API. But=20 >> obviously I'm wrong... >> >> So here is what I want to achieve: >> I have a strict xhtml file without any style information. Now the user= =20 >> should be allowed to select a css file on the local filesystem and=20 >> generate a pdf file out of those two files. >> >> I think now I have two possibilities: >> 1. Dynamically add a <link> element to the header before converting. >> 2. Dynamically add a xml-stylesheet processing instruction before=20 >> converting. >> >> Right? >> >> Thanks a lot! >> Conny >> >> Werner Donn=E9 wrote: >>> Hi Conny, >>> >>> You are trying to replace the User Agent style sheet. Is this >>> what you want or do you want to link your document to your >>> style sheet? If you want to replace the UA style sheet, you >>> have to define style sheet rules for everything. The reason >>> you get no output is that there should be one element which >>> has the "region" property set to "body". In the built-in >>> UA style sheet the element "body" has this property. >>> >>> Best regards, >>> >>> Werner. >>> >>> Cornelius Hald wrote: >>>> Hi, >>>> >>>> I'm trying to use CSStoXSLFO in my project. Unfortunately it's not=20 >>>> quite working as expected... Here is what I'm doing: >>>> >>>> I'm trying to use: CSStoXSLFO.convert(input, output, cssUrl); but=20 >>>> then I always get 0-bytes output files. When I'm using=20 >>>> CSStoXSLFO.convert(input, output, null) I get output but it is (of=20 >>>> cause) formatted with the default css. >>>> >>>> I don't get any exceptions and I'm sure the css file gets opened=20 >>>> during the program run. >>>> >>>> I also tried using >>>> CSSToXSLFO.convert(input, output, baseUrl, cssUrl, null, new=20 >>>> HashMap(), new URL[]{}, false, true); >>>> to get some debug output, but I don't get it - or I'm too stupid to=20 >>>> find it... >>>> >>>> So, what am I doing wrong here? I'm grateful for all hints and=20 >>>> pointers. >>>> >>>> Best regards >>>> Conny >>>> >>>> >>>> --------------------------------------------------------------------= -----=20 >>>> >>>> Using Tomcat but need to do more? Need to support web services,=20 >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your=20 >>>> job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20 >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&= dat=3D121642=20 >>>> >>>> _______________________________________________ >>>> css2xslfo-support mailing list >>>> css...@li... >>>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >>>> >> >> >> ----------------------------------------------------------------------= --- >> Using Tomcat but need to do more? Need to support web services, securi= ty? >> Get stuff done quickly with pre-integrated technology to make your job= =20 >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20 >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&da= t=3D121642 >> _______________________________________________ >> css2xslfo-support mailing list >> css...@li... >> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >> >=20 |