Search found 336 matches

by LasseThid
Mon Nov 18, 2019 2:20 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

A slightly modified XSLT <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="1.0"> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <...
by LasseThid
Mon Nov 18, 2019 12:30 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

Ok, so the XSLT works fine for one product, but if the xml file contains more than one product I get the same result repeated for every product. I added an <xsl:for-each> loop, but it seems to pick up the first product every time. How can I get one <job> for each product? Incoming xml: <?xml version...
by LasseThid
Mon Nov 11, 2019 2:21 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

Yeah.
I have both the XML for Dummies and the XSLT for Dummies here at work. Perhaps I should bring them and do some reading on the train to Stockholm tonight. :roll:
by LasseThid
Mon Nov 11, 2019 2:11 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

job-name in your case is an attribute to the node "job", not a text node directly under. The other values are text nodes directly under "job". That's why you need the @-character. It means "attribute" in xslt. Thanks for the information. It's kinda hard to understand why some things work while othe...
by LasseThid
Mon Nov 11, 2019 2:08 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

Have you had a chance to find out if the path to the nod you are referring to, resolved with a correct value in Switch ?? Navigate in Switch to "//order/jobs/job/job-name" of that XML and see if it is correct. If other paths to certain nodes are getting you the right result and they all are defined...
by LasseThid
Mon Nov 11, 2019 1:59 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

Thanks Jan.

That did the trick.
Can you explain why I need to use @job-name for this node when everything else works without the @-character?
by LasseThid
Mon Nov 11, 2019 1:59 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

Re: XSLT help

Thanks Jan.

That did the trick.
Can you explain why I need to use @job-name for this node when everything else works without the @-character?
by LasseThid
Mon Nov 11, 2019 12:07 pm
Forum: Flows
Topic: XSLT help
Replies: 12
Views: 5254

XSLT help

I need to split an incoming xml-file into one xml-file per product in the order. I have created an XSLT that will pick up all information except for the job-name. Any ideas what might be wrong with my XSLT? Incoming xml file <?xml version="1.0" encoding="utf-8"?> <order version="1.0" type="order" or...
by LasseThid
Tue Nov 05, 2019 3:24 pm
Forum: Flows
Topic: Release a certain number of files at the time at a specific interval
Replies: 7
Views: 3408

Re: Release a certain number of files at the time at a specific interval

Thanks Jimmy!
Excellent suggestion. I'll look into it!
by LasseThid
Mon Nov 04, 2019 5:20 pm
Forum: Flows
Topic: Release a certain number of files at the time at a specific interval
Replies: 7
Views: 3408

Re: Release a certain number of files at the time at a specific interval

Thanks for the info Freddy. I will look into the Hold job groups and see if that is an option. Anywho, here are two screenshot of the two flows I have. The first flow converts the csv file to xml files and then injects a dummy pdf, in order for my to pick up the xml information. I then rename the jo...
by LasseThid
Sun Nov 03, 2019 6:25 pm
Forum: Flows
Topic: Release a certain number of files at the time at a specific interval
Replies: 7
Views: 3408

Re: Release a certain number of files at the time at a specific interval

Hi Malcolm. Yeah, I have that setup in a different flow, but as the ordered amount for each products is different, I would then have to make as many copies of the page for each product before assembling the pdf and then splitting it, which means I could end up with about 1000 pages 700x1000 mm in th...
by LasseThid
Sat Nov 02, 2019 5:34 pm
Forum: Flows
Topic: Release a certain number of files at the time at a specific interval
Replies: 7
Views: 3408

Release a certain number of files at the time at a specific interval

I have a flow where a csv file dropped in a hotfolder will be converted to xml files with CSV2XML and these will then be used to inject a pdf from a file repository in to the flow. The pdf will be color matched and then imposed by Tilia Phoenix. However, as the csv file may contain more than 50 prod...
by LasseThid
Mon Oct 14, 2019 7:30 am
Forum: Switch
Topic: EXIF Tools and spaces
Replies: 8
Views: 3762

Re: EXIF Tools and spaces

I googled EXIFTool and found a page with Command-Line Examples and it shows this: exiftool -artist="Phil Harvey" Have you tried the double quotes? Also -Creator=[Metadata.Text:Path="//field[tag='Name of the metadata field']/value",Dataset="Submit",Model="XML"] "%1" makes it easier to understand what...
by LasseThid
Fri Oct 11, 2019 3:17 pm
Forum: LEGACY scripting
Topic: Using JS To Add Email Addresses
Replies: 6
Views: 3437

Re: Using JS To Add Email Addresses

For added readability and flexibility you could replace "/field-list/field[6]/value" with "//field[tag='Manager']/value" or whatever the field tag is that you want to use. It's much easier to understand what //field[tag='Gramvikt']/value is than what /field-list/field[2]/field-list/field[1]/field-li...
by LasseThid
Fri Oct 11, 2019 10:51 am
Forum: Flows
Topic: Send files one at a time from a folder
Replies: 2
Views: 1688

Re: Send files one at a time from a folder

Thanks Zoran!

Much appreciated.