Project

Profile

Help

Support #3065

Updated by Michael Kay over 7 years ago

For a project that I'm working on I'm using serialize to render some html as a string for inclusion in the meta/ content attribute value of an html document. A singularly large search company has imposed a very specific character escaping requirement for single quotes (as @ & # 3 9 ; @) @'@) and double quotes (as @ & quot ; @). @"@). I've tried playing around with various values of output:use-character-maps and saxon:character-representation but none have resulted in the dictated output. I always end up with unescaped single quotes and @ & # 3 4 ; @ @"@ for double quotes. I've attached a toy stylesheet to demonstrate what I'm attempting. 

 Is this at all possible with the capabilities available in Saxon?

Back