XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Uday RaoSubject: Using a font in FOP
Author: Uday Rao
Date: 26 Sep 2006 11:36 PM
Regardless of the font I use in the FO stylesheet, I get the warning that it is an unknown font and it defaulted to "any" using the FOP post-processor. How do I add a font to FOP under StylusStudio? I reviewed the FOP website and it pointed to a configuration XML file that I could not find within StylusStudio. thanks.

Postnext
(Deleted User) Subject: Re: Using a font in FOP
Author: (Deleted User)
Date: 27 Sep 2006 09:32 AM
Hi,
in order to make Stylus read the configuration file for FOP you need
to place it in the <Stylus Folder>\bin\Plugins\Fop directory, with
the name userconfig.xml.

Hope this helps,
Alberto

Postnext
Uday RaoSubject: Re: Using a font in FOP
Author: Uday Rao
Date: 27 Sep 2006 10:41 PM
Thank you, that worked.

Postnext
Jammy PacSubject: Re: Using a font in FOP
Author: Jammy Pac
Date: 22 Feb 2007 12:03 PM
Hi SSDN,

This seems to work only for style sheets. It doesn't seem to work for post-processing on XQuery. How can I configure a font for FO post-processing with an XQuery.

Thanks,
Jammy

Postnext
(Deleted User) Subject: Re: Using a font in FOP
Author: (Deleted User)
Date: 23 Feb 2007 03:43 AM
Hi Jammy,
we recently found out that the configuration file of Apache FOP is ignored by the XQuery processors; you will have to change your scenario to use a custom post-processor, specifying this command line:

java.exe -cp "C:\Program Files\Stylus Studio 2007 XML Enterprise Suite\bin\Plugins\Fop\fop.jar" org.apache.fop.apps.Fop -c "C:\Program Files\Stylus Studio 2007 XML Enterprise Suite\bin\Plugins\Fop\userconfig.xml" -fo %1 %2

Hope this helps,
Alberto

Postnext
Victor HastingsSubject: Re: Using a font in FOP
Author: Victor Hastings
Date: 03 Jan 2008 08:17 PM
I'm having this same "unknown font" error when using Apache FOP. I tried the workaround you suggested above (yes, I changed '2007' to '2008'), but still get an error because userconfig.xml doers not exist:

Post processing starting...
[INFO] Using com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] Using com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[ERROR] Could not load user configuration file:/C:/Program Files/Stylus Studio 2008 XML Enterprise Suite/bin/Plugins/Fop/userconfig.xml - error: C:\Program Files\Stylus Studio 2008 XML Enterprise Suite\bin\Plugins\Fop\userconfig.xml (The system cannot find the file specified)
[ERROR] using default values
[INFO] FOP 0.20.5rc3a
[INFO] Using com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] property - "text-transform" is not implemented yet.
[ERROR] property - "text-transform" is not implemented yet.
[ERROR] property - "text-transform" is not implemented yet.
[INFO] [1]
[ERROR] unknown font Times New Roman,normal,normal so defaulted font to any

Postnext
(Deleted User) Subject: Re: Using a font in FOP
Author: (Deleted User)
Date: 04 Jan 2008 05:28 AM
Hi Victor,
you have to manually create the userconfig.xml; have a look at the thread at http://www.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=1626 for the instructions on how to build one.

Hope this helps,
Alberto

Postnext
Victor HastingsSubject: Re: Using a font in FOP
Author: Victor Hastings
Date: 05 Jan 2008 02:05 PM
Sorry, I'm still confused. SS created a Plugins\FOP folder, but there is no FOP_Dir\conf folder in there, and I can't find one on my system.

I didn't install FOP separately; I just let SS do it for me. Do I need to install FOP from scratch?

Posttop
(Deleted User) Subject: Re: Using a font in FOP
Author: (Deleted User)
Date: 07 Jan 2008 04:18 AM
Hi Victor,
simply create a userconfig.xml following those instructions and place it in the bin\Plugins\FOP folder of Stylus; Stylus will pick it up and pass it to FOP.

Alberto

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.