Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Is it possible NOT to replace entity references? [Thread Next] Re: Is it possible NOT to replace entity references?To: NULL Date: 9/7/2005 11:56:00 PM Stephan Hoffmann wrote: > Hi, > > I use XML mainly as a source for HTML. HTML browsers 'know' > certain entity references like é or ä. > > When I use XSL to transform XML to HTML or XML, these entities are > replaced by what they refer to. > > Is there a way to avoid that? Not really: this is what transformation is *supposed* to do. Martin suggested some processors might provide facilities for doing this, but I haven't seen them in operation. > Two reasons to avoid that: > - On my linux machine xsltproc replaced the entities in a way that > my browser did not correctly display the resulting HTML > (I updated my linux distribution and it now works). > > - < is replaced by < and the output is no longer valid XML/HTML The topic is covered in the FAQ at http://xml.silmaril.ie/authors/cdata/ ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
