I'm looking for a way to merge multiple (unknown number) of XML job tickets into one, right now.
Current XML template (using Create log for that):
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================================================= -->
<!-- IHPS DFE "print-job" example XML -->
<!-- 5/15/2012 -->
<!-- release 2.5, spec number 11 -->
<!-- ============================================================================= -->
<!-- quality-mode-requested: standard, dual-drop or hybrid-k -->
<message>
<target>jc</target>
<message-name>print-job</message-name>
<customer-job-id>[Job.PrivateData:Key="customer-job-id"]</customer-job-id>
<job>
<quantity>[Job.PrivateData:Key="qtyWithExtras"]</quantity>
<frame-sort-order>collated</frame-sort-order>
<interleave-pattern>AB</interleave-pattern>
<rotate>90</rotate>
<tumble>true</tumble>
<frame-mm-along-web>[Job.PrivateData:Key="job_frame-mm-along-web"]</frame-mm-along-web>
<frame-mm-across-web>[Job.PrivateData:Key="job_frame-mm-across-web"]</frame-mm-across-web>
<rip>
<color-setup-requested>[Job.PrivateData:Key="rip_color-setup-requested"]</color-setup-requested>
<quality-mode-requested>[Job.PrivateData:Key="rip_quality-mode-requested"]</quality-mode-requested>
<job-control>delete-after-printed</job-control>
</rip>
<paper>
<type>[Job.PrivateData:Key="paper_type"]</type>
<width-mm>[Job.PrivateData:Key="paper_width-mm"]</width-mm>
</paper>
<files>
<file>
<sequence>0</sequence>
<filename>[Job.PrivateData:Key="file_filename"]</filename>
<number-of-frames>[Job.PrivateData:Key="file_number-of-frames"]</number-of-frames>
</file>
</files>
</job>
</message>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================================================= -->
<!-- IHPS DFE "print-job" example XML -->
<!-- 5/15/2012 -->
<!-- release 2.5, spec number 11 -->
<!-- ============================================================================= -->
<!-- quality-mode-requested: standard, dual-drop or hybrid-k -->
<message>
<target>jc</target>
<message-name>print-job</message-name>
<customer-job-id>[Job.PrivateData:Key="customer-job-id"]</customer-job-id>
<job>
<quantity>[Job.PrivateData:Key="qtyWithExtras"]</quantity>
<frame-sort-order>collated</frame-sort-order>
<interleave-pattern>AB</interleave-pattern>
<rotate>90</rotate>
<tumble>true</tumble>
<frame-mm-along-web>[Job.PrivateData:Key="job_frame-mm-along-web"]</frame-mm-along-web>
<frame-mm-across-web>[Job.PrivateData:Key="job_frame-mm-across-web"]</frame-mm-across-web>
<rip>
<color-setup-requested>[Job.PrivateData:Key="rip_color-setup-requested"]</color-setup-requested>
<quality-mode-requested>[Job.PrivateData:Key="rip_quality-mode-requested"]</quality-mode-requested>
<job-control>delete-after-printed</job-control>
</rip>
<paper>
<type>[Job.PrivateData:Key="paper_type"]</type>
<width-mm>[Job.PrivateData:Key="paper_width-mm"]</width-mm>
</paper>
<files>
<file>
<sequence>0</sequence>
<filename>[Job.PrivateData:Key="file_filename"]</filename>
<number-of-frames>[Job.PrivateData:Key="file_number-of-frames"]</number-of-frames>
</file>
<file>
<sequence>1</sequence>
<filename>[Job.PrivateData:Key="file_filename"]</filename>
<number-of-frames>[Job.PrivateData:Key="file_number-of-frames"]</number-of-frames>
</file>
<file>
<sequence>2</sequence>
<filename>[Job.PrivateData:Key="file_filename"]</filename>
<number-of-frames>[Job.PrivateData:Key="file_number-of-frames"]</number-of-frames>
</file>
</files>
</job>
</message>
My coding is super limited so I'm trying to do an XSLT transform with built-in configurator as well as with Saxon. I'm testing Saxon with some super simple xmls but results I'm getting are either unchanged xmls or warning "Processing failed with the following error: Input is a directory, but output is not". Should I send folder with xmls to Saxon anyway?