Julian Reschke wrote: > There are characters allowed in HTTP headers that need to be > escaped both in HTML and XML, such as "<". For symmetry you'd also protect ">", and of course "&" when it doesn't introduce a hex. NCR. At the end you can keep a hex. NCR "as is" for the purpose of "displaying" it by insertion in a dummy <title></title><pre> header </pre> HTML file. Works like a charme for transformations of BCP 47 registries to XML, admittedly that has the advantage of not using raw & characters, any & always starts a hex. NCR, for examples see <http://www.iana.org/assignments/language-subtag-registry> <http://xyzzy.webhp.info/home/ltru/ltru2xml.awk> (script) <http://xyzzy.webhp.info/home/ltru/ltru801.xml> (output) > Could you please provide an example? See above. I can't say why you mentioned &#x26; output as example for & input, it has nothing to do with displaying hex. NCRs "as is". But of course it is possible to do this, like it's possible to protect input \u'0026' by say \\u'0026' & => & or & =>  is the same idea as \ => \\ FrankReceived on Tuesday, 25 March 2008 17:50:23 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:38:29 GMT