Mike Kellstrand wrote:
This must be a common issue, but I haven't found a good solution after a lot of searching.
The problem:
I have an XML file containing a lot of text. (I'm working on book layouts)
Sometimes a word here and there in the text needs to be bolded or underlined in the final PDF. Of course adding any kind of inline FO tags in the source XML gets real nasty.
How is this best dealt with?
Whats wrong with just placing <B></B> tags around text you want to make bold in the output. In your XSLT that processes your XML just have a template that matches for these tags and output the appropriate FO. E.g.
<xsl:template match="B"> <fo:inline font-weight="bold"> <xsl:apply-templates/> </fo:inline> </xsl:template>
Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]