[oXygen-user] External data from XQuery in Transformation Scenario.

Mike Starov
Thu Feb 5 13:42:45 CST 2009


>> I am new to oxygen and I was wondering if it is possible to setup a
>> transformation scenario where it would take my local file then add some
>> data from external XQuery processor and take resulting XML and hand it
>> off XSLT Processor and then to PDF FO.
>>
>>
>> Here is my scenario in more details.
>>
>> I have main input DocBook 5 xml file. That file contains most of the
>> data that needs to go in PDF. However final PDF needs some data that is
>> not in that XML. That data is stored in a separate set of files and
>> needs to be selected using complex XQuery based on certain parameters.
>> Those parameters are stored in main xml file in processing instructions.
>> Is something like this possible? Perhaps chained scenarios where output
>> of one is input to another. Sort of like Apache Cocoon with eXist.
I got it down to 2 steps.
  1. I have XQuery file that concatenates main XML file with results of
a FLOWR expression that extracts data from other files. When I  run a
transformation scenario it executes the XQuery file and opens the result
in editor.
(I am forced to have second step because i cannot find a way to
associate an XSLT sheet to XQuery file. The "Additional XSLT
Stylesheets" button is missing from Transformation configuration dialog.)
 2.  Now its time to convert resulting file into PDF. For this i have a
transformation scenario configured that runs it through two XSLT sheets.
First puts correct data in place of PIs and outputs valid DocBook, next
makes FO out of DocBook.

This is close to what i want. Actually I would have been happy with this
but I am developing this for our content authors. They need a one button
solution and preferably that one button needs to be available while they
have main XML open for editing. As you pointed out this may be available
using external tools like XProc or maybe an external script that uses
saxon command line, but I am just exploring what I can do with oXygen
transformation scenarios.




More information about the oXygen-user mailing list