xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From knoxor <paul.k...@agriculture.gov.ie>
Subject How do I add subscripts dynamically ? Guru needed...
Date Wed, 02 Jul 2008 16:14:13 GMT


I need to be able to parse a block of text that may contain the html
superscript tags and convert this into FOP superscripts. I haven't a clue
how to do this and was hoping some experts out there may offer some help.

Basically I will have an xml file like this:

       the quick brown fox<sup>2</sup> jumped over the lazy dog

My xslt translation file has the following:

<xsl:for-each select="statement">
	<fo:block padding-bottom="2mm" text-align="justify" keep-with-next="always"
font-size="10pt" >
		<xsl:value-of select="statement"/>

Will I have to reformat how the xml file is generated to enable me to
process the <sup> tags? eg.

       <text1>the quick brown fox</text1>
       <text2> jumped over the lazy dog</text2>

thanks in advance for any help.

View this message in context: http://www.nabble.com/How-do-I-add-subscripts-dynamically---Guru-needed...-tp18241306p18241306.html
Sent from the FOP - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message