I am converting html to xml using xslt1.0.This is a fragment of my html:
<span style="font-family: Wingdings;>
</span>
My output should be,
<w:sym w:font="Wingdings" w:char="F0D8"/>
Is it possible to do it in xslt or using java.How to identify the char code inside span? Thanks in advance..
This XSLT 2.0 solution:
when applied to the provided XML document:
produces exactly the wanted hexadecimal representation: