• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Not converting special characters.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm generating an HTML page from an xml page. Here's some code.

What I want to happen is to have the '�' characters in between the <H1></H1> tags get converterted to escape characters so that the HTML page will display them correctly, and I want the characters such as '�' and '�' in the <META> tags to be outputted as they appear so that search engines will pick them up. What happens is all the charaters get escaped and so my page header shows up right when I open the page in IE, but this means that the words in the meta tags are all messed up.
How can I make my xsl escape special characters that are not part of the MetaTags template, and leave the characters in this template alone?
 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found this link that may be useful for you. The third question addresses your question:
http://www.xml.com/pub/a/2001/03/28/qanda.html
HTH
Brian
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic