How to convert xml to jdf using xslt or other apps?
-
- Newbie
- Posts: 9
- Joined: Thu Jul 28, 2016 8:49 am
How to convert xml to jdf using xslt or other apps?
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?
Re: How to convert xml to jdf using xslt or other apps?
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.
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.
-
- Newbie
- Posts: 9
- Joined: Thu Jul 28, 2016 8:49 am
Re: How to convert xml to jdf using xslt or other apps?
Hi Freddy, Thanks your reply. Could you make an example how to map jdf template info in input xml using xsl?
-
- Newbie
- Posts: 2
- Joined: Sat Dec 17, 2022 1:06 pm
Re: How to convert xml to jdf using xslt or other apps?
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.
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.
-
- Newbie
- Posts: 2
- Joined: Wed May 31, 2023 7:01 am
Re: How to convert xml to jdf using xslt or other apps?
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.
Re: How to convert xml to jdf using xslt or other apps?
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
xmlns:jdf="http://www.CIP4.org/JDFSchema_1_1" trap the cat