xsl-list
[Top] [All Lists]

Re: Rich text in pdf

2003-07-28 10:48:08
I need a way to somehow show the 'welcome text' value
as rich text. In other words, I want to translate the
html tags to xsl:fo tags so that the pdf processor
will render it as bold, green text, etc...
Is there a way to do this kinda stuff ?


Ah, the scourge of escaped markup!

Not without processing outside of XSL.  CDATA is not PCDATA, which means it is
not parsed.  To process with XSL you will need to get the tags out of CDATA
sections using your char manipulation tools of choice.  They must also be
well-formed XML when you are done pre-processing.  Then template for the
elements as you would otherwise.

Or post-process with char tools to write the FO instructions directly.

hth,

Mike


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>