Jump to content
blg

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?

 

 

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...