W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2005

Re: how to translate XML with XHTML-formatted element to FO

From: Lester Ward <lward@rentec.com>
Date: Wed, 13 Apr 2005 09:57:08 -0400
Message-ID: <425D2534.9060600@rentec.com>
To: www-xsl-fo@w3.org

Magic Finger wrote:
 > Currently I'm only able to translate content of <TITLE> element as plain
 > text to FO output, i.e. FO output for <TITLE> shows the tags <b>...</b> and
 > <i>...</i> as is, without applied bold and italic formatting on title text.

I'd think you would be better off encoding the XHTML as actual tags instead of escaped 
text. For example, change the title to this:

<TITLE><b>Homer Simpson For President</b></TITLE>

At that point, it should be trivial to add XSLT templates matching b and i and add in the 
proper FO at the right time.

Other than that, about the only thing I can think of is to find a text replace template 
(like this one http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/65426) and to a 
series of replacements.
Received on Wednesday, 13 April 2005 14:17:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT