Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai, I have the xslt coding for convert the xml file to fo file for xml to word conversion, in this <fo:inline xmlns:fo="#unknown">contains <fo:inline> as child both are different formats.

sample xml

XML
<sub>ALT</sub>
 (<sub><italic>S</italic></sub> b).


XML
<xsl:template match="//sub">
<fo:inline baseline-shift="sub">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>



<xsl:template match="//italic">
<fo:inline font-style="italic">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>


in this <sub><italic>S</italic></sub> reflect only the italic, subscript not reflected , anyone have the solution.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900