How to convert xml to jdf using xslt or other apps?

Post Reply
tomchen506@gmail.com
Newbie
Posts: 9
Joined: Thu Jul 28, 2016 8:49 am

How to convert xml to jdf using xslt or other apps?

Post by tomchen506@gmail.com »

I try to use jdf file to print automatically in Fiery command workstation. So I need to convert xml to jdf in Switch and how to do it using xslt or other Apps? :D
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: How to convert xml to jdf using xslt or other apps?

Post by freddyp »

There are currently no apps for sending a JDF to a Fiery. I am practically certain that there are people that have written a script to do that. I suggest you send a request for an app to connect to the Fiery here https://www.enfocus.com/en/appstore/appmatch.

If you have a template JDF and it is not too complex and you can map the info in the input XML one on one to the info in the JDF, then creating an XSL is a feasible approach.
tomchen506@gmail.com
Newbie
Posts: 9
Joined: Thu Jul 28, 2016 8:49 am

Re: How to convert xml to jdf using xslt or other apps?

Post by tomchen506@gmail.com »

Hi Freddy, Thanks your reply. Could you make an example how to map jdf template info in input xml using xsl?
rohit361888
Newbie
Posts: 2
Joined: Sat Dec 17, 2022 1:06 pm

Re: How to convert xml to jdf using xslt or other apps?

Post by rohit361888 »

Hiii

If you import XSLTJSON in your stylesheet, you have to add the JSON namespace xmlns:json="http://json.org/" to your stylesheet because all positionsand templates are in that namespace. The json:generate() function takes a XML node as input, develops a JSON representation of that node and returns it as an xs:string . You can also try using XML2JDF if the conversion is not working.
Sarasked1956
Newbie
Posts: 2
Joined: Wed May 31, 2023 7:01 am

Re: How to convert xml to jdf using xslt or other apps?

Post by Sarasked1956 »

One way to convert XML to JDF using XSLT is to use an XSLT processor, such as Saxon, Xalan, or MSXML. These are software applications or libraries that can execute XSLT transformations on XML documents.
cnsoke
Newbie
Posts: 1
Joined: Mon Apr 24, 2023 9:10 am

Re: How to convert xml to jdf using xslt or other apps?

Post by cnsoke »

You also need to use the JDF namespace and prefix in your stylesheet, which are defined as follows:

xmlns:jdf="http://www.CIP4.org/JDFSchema_1_1" trap the cat
Post Reply