
Hi, I haven't found a way to transform a directory with XSLT in oXygen. What I am looking for is a tool you give a stylesheet and a directory to (and maybe a file glob in that directory) and it applies the stylesheet to every document in that directory in turn (or every document the name of which matches the file glob.) In other words, something like the first snapshot there: http://kernowforsaxon.sf.net/. Did I miss it in the doc and the menus? Regards, -- Florent Georges http://www.fgeorges.org/

Hello, Add the directory to an Oxygen project, right click on the added directory in the Project view and select the action "Transform with ..." if you want to apply the same scenario to every file or the action "Apply Transformation Scenario" if you want to apply the scenario already associated for each file. Regards, Sorin Florent Georges wrote:
Hi,
I haven't found a way to transform a directory with XSLT in oXygen.
What I am looking for is a tool you give a stylesheet and a directory to (and maybe a file glob in that directory) and it applies the stylesheet to every document in that directory in turn (or every document the name of which matches the file glob.)
In other words, something like the first snapshot there: http://kernowforsaxon.sf.net/.
Did I miss it in the doc and the menus?
Regards,

Sorin Ristache wrote:
Add the directory to an Oxygen project, right click on the added directory [...]
Thank you Sorin. I still have a little question. I am not sure to understand what you mean by adding a directory to a project. To create a new project folder (decoupled from the filesystem) and populate it with files by hand? Importing it (I am not sure what that exactly does)? Or something else? Regards, -- Florent Georges http://www.fgeorges.org/

Hi Florent, In oXygen there are two type of folders, logical folders and linked folders. The import folder action replicates with logical folders the structure of a selected folder adding automatically the files in the logical folders. Probably that what you want is a linked folder that you can create with the "Link to external folder" action. That presents the actual folder on the disk and is updated as the folder content is updated. Sorin suggestion works with any type of folder you choose to use. See also the "Filters..." action that allows you to filter out files that you do not want to see in the project (and that will not be acted upon when you apply the transform action). Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Florent Georges wrote:
Sorin Ristache wrote:
Add the directory to an Oxygen project, right click on the added directory [...]
Thank you Sorin. I still have a little question. I am not sure to understand what you mean by adding a directory to a project. To create a new project folder (decoupled from the filesystem) and populate it with files by hand? Importing it (I am not sure what that exactly does)? Or something else?
Regards,

George Cristian Bina wrote:
In oXygen there are two type of folders, logical folders and linked folders.
Ok, I didn't know linked folders. I really like the ability to organize the project in logical folders, decoupled from the filesystem, and the ability to link to real directory on the filesystem is a useful complement. (the only drawback is that some features require an Open dialog and do not permit to select files using the logical structure... for now :-p)
See also the "Filters..." action that allows you to filter out files
If I am right, this is set at the project level. Is there any way to set specific filters on one particular linked folder? And to say that sub-directories shouldn't be taken into account? And at the level of one single directory action? For instance, if I want to transform the directory, but I'd like to have a field to set an additional filter to select only, say, the files "2008-*.xml" (only for this single transform.) For what I've seen, "Transform with..." only permits to select a scenario, but I maybe missed something? Thanks again, regards, -- Florent Georges http://www.fgeorges.org/
participants (3)
-
Florent Georges
-
George Cristian Bina
-
Sorin Ristache