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

Re: JSON to XSLT to create AdobeInDesign documents

Subject: Re: JSON to XSLT to create AdobeInDesign documents
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Mar 2020 15:55:01 -0000
Re:  JSON to XSLT to create AdobeInDesign documents
On Tue, 2020-03-10 at 13:09 +0000, James Grubb james@xxxxxxxxxxxxxxxx
wrote:
> Hello,
> 
> I read an article about creating adobe InDesign documents using a
> Sanity.io <http://sanity.io/> an headless CMS which outputs JSON.
> Adobe InDesign uses XSLT to format data here is the article <
> https://medium.com/buro-int/headless-cms-for-a-printed-pizza-book-54b39827e651
> >
> 
> Im looking for a way to turn the JSON created from the Sanity.IO CMS
> in to XSLT to create InDesing Documents. Hope that makes sense?

Not entirely. XSLT is more like a domain-specific programming language,
not a data format.

What you mean is you want a way to turn the JSON documents into XML
documents (which is already linked to from the article). Then in
Indesign (or outside it) you can use the XSLT language to convert that
XML to INDD XML.  So, you write a program in XSLT, once, that does what
you need, and then you can call that XSLT program from InDesign.

Note 1: although i called it a programming language, XSLT is desgined
so that people who don't think of themselves as programmers can do
complex and powerful tect processing.

Note 2: XSLT 3 has native JSON support so could work directly on the
JSON files from sanity.io withot needing the program. But InDesign
probably uses XSLT 1 (i didn't check) which doesnot have JSON support.
You could run XSLT before importing into InDesign, though, e.g.using
Saxon from Saxonica.


-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

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.