xsl-list
[Top] [All Lists]

Re: [xsl] minified json output

2015-01-28 15:58:26
Yes, it is pretty straightforward.  My source stylesheet ends up looking 
minified unfortunately.

Thanks
Peter

From: Michael Kay mike(_at_)saxonica(_dot_)com 
[mailto:xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com]
Sent: January 28, 2015 15:49
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] minified json output

JSON doesn't need any whitespace anywhere. So just don't output any.

Michael Kay
Saxonica
mike(_at_)saxonica(_dot_)com<mailto:mike(_at_)saxonica(_dot_)com>
+44 (0) 118 946 5893



On 28 Jan 2015, at 19:28, Rushforth, Peter 
peter(_dot_)rushforth(_at_)nrcan-rncan(_dot_)gc(_dot_)ca<mailto:peter(_dot_)rushforth(_at_)nrcan-rncan(_dot_)gc(_dot_)ca>
 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com<mailto:xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>>
 wrote:


Hi,

I need to serialize json text from a stylesheet.  What would be the recommended 
XSLT way to ensure it is as close to 'minified' as possible?

Peter Rushforth
XSL-List info and archive<http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe<-list/293509> (by email)

XSL-List info and archive<http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe<-list/1059019> (by email<>)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>