Skip to main content
12-Amethyst
February 6, 2014
Question

Publishing Engine - HOW?

  • February 6, 2014
  • 2 replies
  • 1911 views

Is there a way to run an xsl on multiple xml files with Publishing Engine?

2 replies

Darquise12-AmethystAuthor
12-Amethyst
February 6, 2014

If so, how do you do it?

16-Pearl
February 7, 2014

It's not clear what you are trying to achieve here. Publishing Engine is usually access via its web API. To perform a transformation on multiple XML files simply means making a number of API calls, one for each XML file.

Or do you mean a transformation which merges information from a number of XML files into one output?

Darquise12-AmethystAuthor
12-Amethyst
February 19, 2014

Yes, I meant a transformation that will merge a number of XML files into one output.

16-Pearl
February 20, 2014

This can be achieved outside of PE pretty simply using XSLT processor and the document() function. I think the issue you will have with PE is that the composition pipeline expects only one XML input.

You can reference other XML documents in your XSLT, but if they are a local filesystem reference and not a URL then they cannot be resolved when PE is transforming the document. This is because the only other thing that is sent "over the wire" to PE besides the primary XML content is any related graphic files.

We have achieved something similar before by implementing a custom composition pipeline or custom PE function. In that case you package up the XML and its dependencies as a ZIP file, then have PE work on the ZIP file.