[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
There's no standard way of doing it, and no extension in Saxon, but the Saxon serializer is fairly easy to customize: subclass SerializerFactory with an override of newXMLEmitter() to create a subclass of XMLEmitter; in your subclass of XMLEmitter, override writeAttribute() and writeEscape().
Re: [xsl] JSON strings in XML attributes
Subject: Re: [xsl] JSON strings in XML attributes From: Michael Kay <mike@xxxxxxxxxxxx> Date: Wed, 29 Aug 2012 21:35:29 +0100 |
Is there a way to tell an XSLT 2 processor to serialize attribute delimiters as single quotes and keep double quotes unescaped in attribute values?
There's no standard way of doing it, and no extension in Saxon, but the Saxon serializer is fairly easy to customize: subclass SerializerFactory with an override of newXMLEmitter() to create a subclass of XMLEmitter; in your subclass of XMLEmitter, override writeAttribute() and writeEscape().
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] JSON strings in XML attri, Liam R E Quin | Thread | [xsl] Replace content of element, t, trond.huso |
Re: [xsl] JSON strings in XML attri, Liam R E Quin | Date | RE: [xsl] Pattern Matching in XSl -, Kerry, Richard |
Month |
Keywords