XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I'm trying to generate PDF containing japanese text using XSLT templates. Input data for XSLT is coming from XML containing unicode characters as follows:
This XML is taken as input for the following XSLT snippet which outputs XSL-FO ; later converted to PDF uing FOP procesor. I'm using custom font 'msmincho.ttf' throughout XSLT body and titles.
My problem is that the output pdf does not contain Japanese characters as desired. It rather contains same unicode characters like \u3053\u306e as paased in input XML. Any help in this regard is greatly appreciated.
I'm now getting sequence of # printed on PDF which does not seem to be Japanese character either. I have tried both the decimal (beginning with ampersand and hash) and hexadecimal equivalent (beginning with ampersand, hash and x) of the unicode character.
Hi, the problem is resolved now. My stylesheet was not picking up the MSMincho font correctly. I re-defined it, retained the '#x' change and its working now. Thanks very much for your help.