Fabien Tillier [mailto:f.till...@cerep.fr] wrote:


> Do you think it is possible to do the customization on the stylesheet, so
> that it will detect special characters and replace, say α-
> bungarotoxin by the <symbol role="symbolfont">&#945;</symbol>-bungarotoxin
> ?

This is certainly possible to do in XSLT. I have done something similar to 
create HTML entities for special characters. You need to customize the template 
that matches your text node, cycle through each character using text functions 
such as "substring", and then just compare the character to the numerical 
entity; something like this:

<xsl:when test="$character = '&#945;'">
        <fo:inline font-family="'Symbol'"><xsl:value-of=select="$character" 
/></fo:inline>
</xsl:when>


> I read somewhere that the TRUNK version of FOP has some changes in that
> matter, I may give it a try...

Ooh, that would be good to know. Please let us know what you find.


*************************
Rob Cavicchio
Principal Technical Writer & Information Architect
EMC Captiva
Information Intelligence Group
EMC Corporation
3721 Valley Centre Drive, Ste 200
San Diego, CA 92130

P: (858) 320-1208
F: (858) 320-1010
E: rob.cavicc...@emc.com

The opinions expressed here are my personal opinions. Content published here is 
not read or approved in advance by EMC and does not necessarily reflect the 
views and opinions of EMC.


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to