Jump to content

Convert HTML Tags Using XSL


Recommended Posts

I am working with an xml document that has html tags embedded in it. The character entities that are embedded in the html need to be converted to tags:

For example, the following character entities are part of the html:



I need to perform these conversions
Convert '’' to '’'

Convert '—' to '—'

Convert ' ' to ' '


I have successfully converted these 3 character entities in the DTD by adding entity declarations. For example:

<!ENTITY rsquo "’">


I will be receiving these xml documents frequently, and the html text changes, so there will probably be additional character entities (beyond the 3 above) that require conversion.


Is there another way to perform these character entity conversions without having to add an entity declaration in the DTD for each one?










Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...