Converting normal text to UTF values using "character map"
Dear All,
I have two questions to be discussed
Question 1.
I am writing an XSLT to convert the following UTF characters:
Input: Following is a Greek input
μακάριος
XSLT used:
<xsl:import href="iso8879map.xsl"/>
<xsl:output method="html" use-character-maps="iso8879" omit-xml-declaration="no" indent="no" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
Output:
&mgr;&agr;&kgr;&aacgr;&rgr;&igr;&ogr;&sfgr;
But, following is my required output - hope i need to make few modification in the above XSLT.
Required Output:
üñúìÃùÿÃâ
Any help would be great full.
Also, the original text that show above in the"Input" Greek characters was original converted from following normal text
<greek>mak&alphaacute;piow</greek>
My second question follows
Question 2
Is there any way in XSLT to directly convert as follows:
Input:
<greek>mak&alphaacute;piow</greek>
Output:
üñúìÃùÿÃâ
__________________
Thanks,
Rocxy.
|