[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: minified json output

Subject: Re: minified json output
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Jan 2015 22:11:31 -0000
Re:  minified json output
> Yes, it is pretty straightforward.  My source stylesheet ends up looking
minified unfortunately.

There's no reason why it should. Can you give an example? Have you looked at

https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/Overview.htm
l#xml-to-json-stylesheet

Michael Kay
Saxonica

>
> Thanks
> Peter
>
> From: Michael Kay mike@xxxxxxxxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: January 28, 2015 15:49
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  minified json output
>
> JSON doesn't need any whitespace anywhere. So just don't output any.
>
> Michael Kay
> Saxonica
> mike@xxxxxxxxxxxx
> +44 (0) 118 946 5893
>
>
>
>
> On 28 Jan 2015, at 19:28, Rushforth, Peter peter.rushforth@xxxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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
> EasyUnsubscribe (by email)
>
> XSL-List info and archive
> EasyUnsubscribe (by email)
> XSL-List info and archive
> EasyUnsubscribe (by email)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.