S
Stephan Hoffmann
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?
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
I worked with the Python xml.sax module today,
which had the same 'issue'. I can of course perform the
inverse substitution before I write to the result document,
but that seems like a lot of unnecessary work.
Any hints?
Thanks, Stephan
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?
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
I worked with the Python xml.sax module today,
which had the same 'issue'. I can of course perform the
inverse substitution before I write to the result document,
but that seems like a lot of unnecessary work.
Any hints?
Thanks, Stephan