Re: [xsl] JSON to XSLT to create AdobeInDesign documents

Subject: Re: [xsl] 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
On Tue, 2020-03-10 at 13:09 +0000, James Grubb james@xxxxxxxxxxxxxxxx
> Hello,
> I read an article about creating adobe InDesign documents using a
> <> an headless CMS which outputs JSON.
> Adobe InDesign uses XSLT to format data here is the article <
> >
> 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 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,
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:

Current Thread