[oXygen-user] Way to Use Input Filename to Construct Result Filename in Tranformation Scenarios?
George Cristian Bina
Tue Apr 21 16:06:16 CDT 2009
Hi Eliot,
The best approach is to define the scenario while your current file is
an XML file. Then the current file URL, current file name, etc.
variables will be resolved to the transformation XML file.
Then, instead of editing the scenario to specify different XML documents
you just open the document you want and apply the scenario on that.
Even better, you can use the support for batch transformations and
select multiple XML files in the project (eventually you can group them
in a logical folder) and use the contextual menu to apply the
transformation scenario.
Let me know if the above solves your problem.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Eliot Kimber wrote:
> I didn't see an obvious way to do what I want in the Tranformation Scenario
> dialog.
>
> What I would like to do is use the filename part of the input file for a
> transformation scenario to construct the result filename, e.g., a new file
> with the same name in a different directory or a new file that uses the
> input name as part of its name, etc. This is in the context of a scenario
> defined for an XSLT file, that is, I'm editing the transform and run the
> scenario from that file, associating it with different input files.
>
> It appeared that the "current filename" variable resolved to the name of the
> transformation file (the XSLT).
>
> Is there a way to do what I want or do I have to define the scenario from
> the viewpoint of the input file?
>
> Thanks
>
> Eliot
> ----
> Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc.
> email: <mailto:>
> office: 610.631.6770 | cell: 512.554.9368
> 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403
> www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com
> <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list