473,387 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XSL-FO special character to PDF

Bal
Hi,
I am trying to generate a pdf using a XML file and rendering the page
through XSL Stylesheet to a PDF. But the page has some special
characters, as its for a chequ website.

My Code below is

<--xsl:page-->

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">.....
Ň

<--/xsl:page-->

My problem is that when the page renders in the PDF the special
character Ň
renders as just #.
I have trawled through most of the newsgroups and no luck, only to
know (or think) that the problem is with the unicoding.
Please could you help me
Thanks

Brandon
Jul 20 '05 #1
2 4510
On 12/4/03 3:41 AM, in article
49*************************@posting.google.com, "Bal" <bw****@hotmail.com>
wrote:
My problem is that when the page renders in the PDF the special
character Ň
renders as just #.


Brandon,

The font-family you are calling does not contain a glyph for this character.
Hence the output '#'. By default, FOP only uses the base 14 fonts.

To use a font that includes this glyph, you need to build a font metrics
file (in xml) for the font using either PFMReader or TTFReader (part of the
Apache FOP distribution), then register the font with FOP by modifying or
setting up an FOP configuration file.

John

~~~~~~~~~~~~~~
John Root
Publishing Systems
jr***@publisys.com
~~~~~~~~~~~~~~

Jul 20 '05 #2
Bal
John Root <jr***@publisys.com> wrote in message news:<BBF4B90B.106D6%jr***@publisys.com>...
On 12/4/03 3:41 AM, in article
49*************************@posting.google.com, "Bal" <bw****@hotmail.com>
wrote:
My problem is that when the page renders in the PDF the special
character Ň
renders as just #.


Brandon,

The font-family you are calling does not contain a glyph for this character.
Hence the output '#'. By default, FOP only uses the base 14 fonts.

To use a font that includes this glyph, you need to build a font metrics
file (in xml) for the font using either PFMReader or TTFReader (part of the
Apache FOP distribution), then register the font with FOP by modifying or
setting up an FOP configuration file.

John

~~~~~~~~~~~~~~
John Root
Publishing Systems
jr***@publisys.com
~~~~~~~~~~~~~~


Thanks John,
I have tried changing the config file, and it seems to have worked:-)))!!!
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: will | last post by:
HOpe you can help with this... I have the following xml document... <?xml version="1.0" ?> <file> <header>some data</header> <detail> some more data</detail> <footer> gdshada </footer>
0
by: Franck Perrin | last post by:
I'd like to know if there is a way to apply to successive XSL transformations on one XML file. I got this XML file : <page Action="N047"> <data defaultName="c0dos010" Type="String"...
0
by: johkar | last post by:
My XML and XSL is below. Also below is a textual representation of what I want to get out of the XML with XSL. For each Extension node in XML, I am only concerned with those nodes with...
29
by: Thomas | last post by:
Hi I have an XSL stylesheet: <xsl:for-each select="TRACKS/TRACK"> <tr class="TDL"> <td width="90%"><xsl:number value="position()" format="1" /> - <xsl:value-of select="TRACKTITLE"/></td>...
0
by: Mikael Petterson | last post by:
Hi, I am trying to produce the following in javacode; public void action<An actionName>(String value1, int value 2....,Coordinator c) throws Exception; The arguments to the actionXXX could...
4
by: Jean-Christophe Michel | last post by:
Hi, In a complex merging of two (non ordered) xml files i need to keep track of the elements of the second tree that were already merged with first tree, to copy only unused elements at the end....
1
by: Philip | last post by:
Hi, I am trying to output certain nodes inside another. I have an xml template with field definitions for a form, and this includes textfields, labels, checkboxes etc plus fieldssets. I defined...
7
by: Andy Fish | last post by:
Hi, I'm stuck with an XSL problem - can anyone give me any hints? I have some XML with nested formatting tags like this: <text> this is plain <bold> this is bold
5
by: Tom Alsberg | last post by:
Hi there... I'm recently trying to get a bit acquainted with XML Schemas and XSL. Now, I have a few questions about XSL stylesheets and templates: * Is there a way to "enter" a child element...
2
by: Burt Lewis | last post by:
Hi, I have 2 xsl style sheets calling separate rss feeds and I use ASP to display. Problem is that the 1st xsl takes on the style of the 2nd xsl even though they are different formats. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.