Topic
  • 2 replies
  • Latest Post - ‏2013-04-17T12:21:14Z by XML-Master
MuthukumarShanmugasundaram
3 Posts

Pinned topic Special Symbols in XSL-FO

‏2012-07-17T16:21:51Z |
I have an HTML which contains '≥' abd also '≤' and othe special symbols.
But in XSL-FO these special symbols are rendered as #.
Have added correponding unicode also but no result.
Please do the needful
Updated on 2012-07-19T09:39:32Z at 2012-07-19T09:39:32Z by MuthukumarShanmugasundaram
  • MuthukumarShanmugasundaram
    3 Posts

    Re: Special Symbols in XSL-FO

    ‏2012-07-19T09:39:32Z  
    Found a temp solution for symbols.

    'SYMBOL' font supports greater that or equal to and lessthan or equal to.
    So i have replaced ≥ with <symbol> ≥ </symbol>
    Then i have written template match for that

    <xsl:template match='symbol'>
    <fo:inline font='Symbol'></xsl:applytemplates></fo:inline>
    </xsl:template>

    Hope this would be temporary solution.
    Kinldy let us know is there any other solution

    Thanks
    Muthukumar
  • XML-Master
    XML-Master
    1 Post

    Re: Special Symbols in XSL-FO

    ‏2013-04-17T12:21:14Z  
    Found a temp solution for symbols.

    'SYMBOL' font supports greater that or equal to and lessthan or equal to.
    So i have replaced ≥ with <symbol> ≥ </symbol>
    Then i have written template match for that

    <xsl:template match='symbol'>
    <fo:inline font='Symbol'></xsl:applytemplates></fo:inline>
    </xsl:template>

    Hope this would be temporary solution.
    Kinldy let us know is there any other solution

    Thanks
    Muthukumar

    If you are using XSLT 2.0 than I think you are looking for 'char-map'. Please refer : 

    1. http://www.xmlplease.com/xmltraining/xslt-by-example/examples/character-map_1.html

    2.http://saxonica.com/documentation9.4-demo/html/xsl-elements/character-map.html