I have an XML which contains named entity references like — etc.
I am using an XSLT to transform this XML to another XML. This XSLT also uses character mapping (I am using Saxon 8b for XSLT 2.0).
There is another XSLT called charmap.xsl which is imported in the original XSLT
charmap.xsl looks like this
The main XSLT looks like this
What I can't understand is that even after the XML is transformed I still get named entity references in the transformed XML. I was expecting hex code values there (because of the charmap). Please tell me how to get the hex code values in the transformed XML rather than the named entity refernces whcih are there in the original XML.
Sorry, I realize I don't understand your terminology. You provide a character map that looks to me like it tells Saxon to output what I would call "named entity references" for certain characters. But then you say you would expect "hex code values" because of the character map.
Let's take your ellipsis character for example. I would expect the output to be "…" because that's what the character map specifies. That's a named entity reference, isn't it? Are you saying that despite the character map, you would still expect to see "…" in the output?
I would say, if that's what you want then just leave the character map out entirely.
If you're gonna buy things, buy this thing and I get a fat kickback: