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 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] JSON to XSLT to create AdobeI, James Grubb james@xx | Thread | [xsl] [ANN] XSLT 3 course moving on, Liam R. E. Quin liam |
[xsl] JSON to XSLT to create AdobeI, James Grubb james@xx | Date | [xsl] [ANN] XSLT 3 course moving on, Liam R. E. Quin liam |
Month |