Skip to main content
1-Visitor
June 19, 2015
Question

Print Compose multiple XML files into one PDF?

  • June 19, 2015
  • 1 reply
  • 6496 views

Fellow Forum Members,

Is it possible in Arbortext Editor 6.1 to use the Print Compose feature for the task of printing 150 separate XML files into a single PDF in a batch mode process? The idea I have is to code a XML file that will list all of the XML files in the order I want and here is where I need help. How can I direct the Print Compose tool to print all of the XML files in a batch mode by using such a XML list file?  Any opinion on how I can accomplish this will be greatly appreciated.  Thanks in advance.

1 reply

1-Visitor
June 19, 2015

Hi Ivan,

This sounds like the sort of thing which is typically handled by creating a top-level XML file which references the 150 other files via XML Include or file references. This requires that the top-level tag in your included files is allowed (in context) within some tag in your including document. This may require a small amount of DTD/XML Schema work. Or the 150 files could be saved as fragments with their top-level tag removed. One way to create such fragments is to select everything except the top-level tag and Select Entities > Create File Entity from Selection.

Is this along the right lines, or did I misunderstand your situation?

Best regards,

Gary Grosso

Oberon Technologies Inc

it11-VisitorAuthor
1-Visitor
June 19, 2015

Gary and Jeff,

Thanks for the two great postings.  I have continued researching this problem and have narrowed it down to what is known as a "WRAPPER FILE". Which is pretty much what both of you are describing in your postings.  A wrapper file is hard coded in XML and inside of it one needs to code all 150 xml files in a list as references that reflects the order you want your 150 XML files to output in as a PDF.  Gary I think I follow with what you mention about selecting all tags (except to level tag) and then selecting the  "Create File Entity from Selection" menu item in Arbortext. However, I hope you can clarify whether or not if it is still necessary for me to tweak the S1000D 4.01 Schema I'm using  if I change all 150 of my XML files over to becoming Entities?  It would be cool if I can avoid tweaking the Schema. Also once I have 150 entities created how do I wrap them so that Arbortext Print Compose sees all of the 150 entities as a single consolidated XML file that needs to be converted into a single PDF in a single print operation? 

If anyone out there can please expand on how to code a WRAPPER file by posting some actual XML coding examples it will be much appreciated. Also examples on how to get it to work by relying in using Entities will be much appreciated.  In short, any help will be tremendously appreciated because I need help.  Thanks in advance.

it11-VisitorAuthor
1-Visitor
June 23, 2015


Gareth, or anyone else that may be able to help.  I'm having some difficulty integrating the <x:include> tag and dropping the <dmref> usage.  I got a problematic PDF output when I tried replacing the one for the other.  Can anyone out there please post some XML code example on how to code a hybrid PM file that replaces all <dmref> tags with  <x:include> tags that Arbortext Editor will have no problem processing.  Thanks in advance.