> Unfortunately I have to be away from my machine for the next day or so, and
> you said your need was urgent. I could let you have something by Monday,
> though, unless someone else has something to hand (Sebastian: wouldn't a
> simple pass-through XSLT do it with the output encoding set to US-ASCII?)
If the input is XML (I cant remember if Ralph said so), then yes,
but identity transforms in XSLT are sometimes more radical
than people like. for instance, they expand all your entities!
I am racking my brains trying to think of a situation where this
transform is needed. If its XML to XML, then any XML processor can
handle the original encoding; if its XML to HTML, then XSLT can handle
it; if its for storage or transmission purposes, surely UTF-8 is
handled by any self-respecting software these days?
Sebastian Rahtz OUCS Information Manager
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431