[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: minified json output
On Wed, Jan 28, 2015 at 1:58 PM, Rushforth, Peter peter.rushforth@xxxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Yes, it is pretty straightforward. My source stylesheet ends up looking > minified unfortunately. One can maintain a well-indented stylesheet that writes "minified" text. One way to achieve this is not to have literal-text-output, but to produce the text with xslt instructions (xsl:value-of, xsl:sequence, ...) and to use <xsl:text>json-text</xsl:text> Cheers, Dimitre > > > > 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 bminifiedb 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)
|
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
|