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

Sorin Ristache
Thu Feb 5 04:12:21 CST 2009


Hello,

It is possible to set up a chain of XSLT transformations in the same 
transformation scenario but in the current version it is not possible to 
chain XQuery and XSLT transformations in the same scenario. That means 
you will have to create a first scenario that runs the XQuery 
transformation for filling the DocBook 5 XML file with the details based 
on the processing instructions and a second scenario that applies the 
predefined DocBook PDF scenario to the result of the first scenario.

You find details about transformation scenarios (create a scenario, 
chain some transformations in the same scenario, etc) and about the 
supported XQuery processors in the Oxygen User Manual:

http://www.oxygenxml.com/doc/ug-oxygen/defining-new-transformation-scenario.html

http://www.oxygenxml.com/doc/ug-oxygen/additional-xslt-stylesheets.html

http://www.oxygenxml.com/doc/ug-oxygen/transforming-xml-documents-using-xquery.html

http://www.oxygenxml.com/doc/ug-oxygen/database-perspective.html

If the XQuery processor does not have built-in support in Oxygen you can 
set it as custom processor in Oxygen and use it in a transformation 
scenario:

http://www.oxygenxml.com/doc/ug-oxygen/preferences-custom-engines.html

Please let us know if you have problems using any feature.

Also you can set up an XProc scenario and run it as a single action from 
Oxygen with an integration of an XProc processor, as in Florent's 
example (he posted a message about it to this mailing list too):

http://fgeorges.blogspot.com/2008/10/poor-mans-calabash-integeration-into.html

http://fgeorges.blogspot.com/2008/11/xproc-with-xslt-completion-in-oxygen.html


Regards,
Sorin


Mike Starov wrote:
> 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.



More information about the oXygen-user mailing list