[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Form feed character () in decoded xs:base64B
What happens if you use version="1.1" in the XML declaration (of the
stylesheet)?
On 13.07.2020 19:54, Martynas JuseviD
ius martynas@xxxxxxxxxxxxx wrote:
Hi,
I'm transforming large JSON files with some email data using XSLT 3.0.
They contain xs:base64Binary literals which I'm decoding using
bin:decode-string() and want to include the decoded values in the
output XML.
The problem is that some of the decoded string values have illegal XML
1.0 characters in them, such as Form feed ().
I want to remove them but cannot find a way.
I can't use translate(., '', '') because the stylesheet would not
be well-formed anymore.
I can't even use replace(., codepoints-to-string(12), '') because I
get this error (with Saxon 10.1 EE):
codepoints-to-string(): invalid XML character [xc]. Found while
atomizing the second argument of fn:replace()
Are there any native XSLT options here?
Thanks.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|