Re: [css2xslfo-support] No output from CSStoXSLFO.convert(...)
Brought to you by:
wdonne
From: <wer...@re...> - 2006-11-13 10:40:14
|
Hi Conny, 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. Best regards, Werner. Cornelius Hald wrote: > Hi Werner, >=20 > 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... >=20 > 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. >=20 > 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. >=20 > Right? >=20 > Thanks a lot! > Conny >=20 > 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 the= n=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 pointe= rs. >>> >>> Best regards >>> Conny >>> >>> >>> ---------------------------------------------------------------------= ---- >>> Using Tomcat but need to do more? Need to support web services, secur= ity? >>> Get stuff done quickly with pre-integrated technology to make your jo= b=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&d= at=3D121642 >>> _______________________________________________ >>> css2xslfo-support mailing list >>> css...@li... >>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >>> >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >=20 --=20 Werner Donn=E9 -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |