
Hello, You can save the transformation scenarios at project level in Oxygen by selecting the option "Project Scenarios" in the dialog with the list of scenarios. The parameters of the stylesheet are saved in an element scenario/field: <scenario> ... <field name="xsltParams"> <list> <transformationParameter> <field name="name"> <String xml:space="preserve">draft.mode</String> </field> <field name="value"> <String xml:space="preserve">no</String> </field> </transformationParameter> <transformationParameter> <field name="name"> <String xml:space="preserve">img.src.path</String> </field> <field name="value"> <String xml:space="preserve">./../</String> </field> </transformationParameter> </list> </field> ... <scenario> You can write a stylesheet or a script that reads your list of pairs param name - param value and populates the params in the scenario stored in the Oxygen project file. Reopen the modified project file in the Project view and now the params are set in the scenario. Regards, Sorin Stefan Krause wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I wrote an ant build which transforms xml files via xslt. The input is driven by a database, which writes a property file and triggers ant. While debugging my stylesheets, I have to open the property file and copy the params manually to the transformation scenario params.
I was wondering if you could implement a feature which reads a given property file and populates the params in the scenario?
Ant file:
<project name="test" default="test" basedir="."> <property name="param1" value="value1"/> ...
Stylesheet: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:param name="param1">value1</xsl:param> ...
Best regards,
Stefan