Click here to Skip to main content
15,889,612 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to retain all hexadecimal entities in xslt transformation.

Sample code:
First, read training data and testing data from files “traindata.xls” and “testdata.xls” and randomly sort training data, in order to prevent the over fitting phenomenon causing by data’s uniformly distributing. Then normalize data to prevent error causing by the difference of magnitude. In the experiment we take “mapminmax” function in MATLAB toolbox to normalize data, making them fall in [-1, 1].

XML
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output use-character-maps="my-map" indent="yes"/>
<xsl:character-map name="my-map">
<xsl:output-character character="í" string="&#x000ED;"/>
</xsl:character-map>
<xsl:template match="/">
<root>
<p pstyle="para">This is sample character í</p>
</root>
</xsl:template>
</xsl:stylesheet>


By using above xlst transformation able to transform for single entity. But by repeating this might result in lot of code. Is there any simple way to retain hexadecimal entities.

Thanks in advance
Posted
Updated 10-Apr-15 5:25am
v2

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