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

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

From: Glen Mazza <grm7793@yahoo.com>
Date: Wed, 13 Apr 2005 07:54:09 -0700 (PDT)
Message-ID: <20050413145409.63455.qmail@web80508.mail.yahoo.com>
To: www-xsl-fo@w3.org

This may also help you:

http://www-106.ibm.com/developerworks/library/x-xslfo2app/

Glen

--- Lester Ward <lward@rentec.com> wrote:
> 
> 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:54:11 GMT

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