« Return to Thread: XSL-FO assistance

Re: XSL-FO assistance

by Adam Retter-3 :: Rate this Message:

Reply to Author | View in Thread

Hi Pawel, it was not possible to specify a user config file. However,
I had some spare minutes as some systems at work are down and it
seemed a solid use-case, so I have just added this ability to the
trunk version of eXist. If you build eXist from trunk, the
xslfo:render() function will now look for a parameter called
"user-config" in the parameters, which should be a path to a local FOP
configuration file. If it is present then it will load and configure
FOP according to that file.

Thanks Adam.


2008/5/16 PawelKat <pawelkat@...>:

>>
>> Function details are -
>>
>> xslfo:render($a as node(), $b as xs:string, $c as node()) as xs:base64Binary
>>
>
> Hi Adam and others,
> Is there the way to pass fop user-conf configuration file (fop.xconf) in this
> extension?
> I need it in order to embedd ttf fonts.
>
> if fop there is -c parameter in cocoon it's possible to add:
> <map:serializer name="fo2pdf"
>  src="org.apache.cocoon.serialization.FOPSerializer"
>  mime-type="application/pdf">
>    <user-config
> src="/opt/tomcat/webapps/app/stylesheets/pdf/fonts/fop-fonts config.xml"/>
>  </map:serializer>
>
> but I never tried.
> If it's not so difficult to add such a parameter, I would be very grateful,
> because without that I can't use national fonts with fop.
>
>>
>> Function details are -
>>
>> xslfo:render($a as node(), $b as xs:string, $c as node()) as xs:base64Binary
>>
>> Renders a given XSL-FO document. $a is the XSL-FO node, $b is the
>> required mime-type, $c is parameters to the transformation.
>> Returns an xs:base64binary of the result.
>> Parameters are specified with the structure:
>> <parameters><param name="param-name1" value="param-value1"/>
>> </parameters>
>> Recognised rendering parameters are: author, title.
>>
>>
> http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist/extensions/modules/src/org/exist/xquery/modules/xslfo/readme.txt?view=markup
>>
>> I am not sure why this is not appearing in the functions page if it is
>> compiled and enabled, someone also reported the same problem with the
>> SQLModule?!? I wonder whats going on here?
>>
>> Thanks Adam.
>>
>> 2008/5/14 Ethan Aho <eaho <at> kennedyinfo.com>:
>> > Dannes,
>> >
>> > The function rebuild brought up the SQL module functions, but not the
>> > XLSFO functions.  I did look at the readme.txt of the module itself and
>> > have the jar files in place.  I'm not having much luck figuring out
>> > functions and their parameters from reading through code, though.  And
>> > since http://demo.exist-db.org/xquery/functions.xq doesn't have the
>> > functions either, I'm at a loss of what to try.
>> >
>> > Ethan
>> >
>> >
>> > Dannes Wessels wrote:
>> >> Hi,
>> >>
>> >> On Wed, May 14, 2008 at 7:52 PM, Pierrick Brihaye
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

 « Return to Thread: XSL-FO assistance

LightInTheBox - Buy quality products at wholesale price