Re: [css2xslfo-support] java.net.MalformedURLException
Brought to you by:
wdonne
From: <wer...@re...> - 2006-12-26 11:37:41
|
Hi John, This is because the base URL has not been set, which makes it impossible to resolve relative URLs. You should use the full version of CSSToXSLFO.convert. The one you have used is only a convenience method for anonymous streams. Best regards, Werner. bai xiaobo wrote: > Hi, >=20 > I'm trying to use CSStoXSLFO in my project. Unfortunately it's not quit= e > working as expected. >=20 > I add following link element in my html header > <link rel=3D"stylesheet" type=3D"text/css" href=3D"mystyle.css"> >=20 > "mystyle.css" file was placed in the same location with the html file. > when run the CSSToXSLFO.convert(InputStream in, OutputStream out) func= tion, > following exception throwed: > java.net.MalformedURLException: no protocol: mystyle.css >=20 > can you help me how to solve this problem? > Thank you in advance. > --=20 > best regards > John >=20 >=20 > -----------------------------------------------------------------------= - >=20 > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support --=20 Werner Donn=E9 -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |