[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] minified json output


Subject: Re: [xsl] minified json output
From: "Rushforth, Peter peter.rushforth@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Jan 2015 21:58:19 -0000

Yes, it is pretty straightforward.  My source stylesheet ends up looking
minified unfortunately.

Thanks
Peter

From: Michael Kay mike@xxxxxxxxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: January 28, 2015 15:49
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] minified json output

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

Michael Kay
Saxonica
mike@xxxxxxxxxxxx<mailto:mike@xxxxxxxxxxxx>
+44 (0) 118 946 5893



On 28 Jan 2015, at 19:28, Rushforth, Peter
peter.rushforth@xxxxxxxxxxxxxxxxx<mailto:peter.rushforth@xxxxxxxxxxxxxxxxx>
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list-service@xxxxxxxxxxxx
rytech.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<>)


Current Thread
Keywords