Hi,
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:
<statement>
<statementbody>
the quick brown fox<sup>2</sup> jumped over the lazy dog
</statementbody>
</statement>
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"/>
</fo:block>
</xsl:for-each>
Will I have to reformat how the xml file is generated to enable me to
process the <sup> tags? eg.
<statement>
<statementbody>
<text1>the quick brown fox</text1>
<sup>2</sup>
<text2> jumped over the lazy dog</text2>
</statementbody>
</statement>
thanks in advance for any help.
Paul
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]