Actions
Support #3065
closedCharacter escaping with serialize()
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2016-12-09
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
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?
Files
Please register to edit this issue
Actions