Re: [css2xslfo-support] No output from CSStoXSLFO.convert(...)
Brought to you by:
wdonne
From: Cornelius H. <ha...@ic...> - 2006-11-13 10:10:46
|
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, >=20 > 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. >=20 > Best regards, >=20 > Werner. >=20 > 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 then= =20 >> 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 pointer= s. >> >> Best regards >> Conny >> >> >> ----------------------------------------------------------------------= --- >> 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 |