by adrian » Tue Jan 10, 2012 1:30 pm
Hello,
One solution for this would be to write an XProc script from scratch that performs the necessary validations and transformations. Then you could execute it either in Oxygen or separately in the command line.
A few simple examples can be found in the Oxygen samples project(xproc directory). Or look in the <installation_directory>/samples/xproc
Alternatively, in the Oxygen GUI you could split this into two steps:
- a validation scenario(Document -> Validate -> Configure Validation Scenario) that performs both validations(schema and schematron)
- a transformation scenario
You can apply each of these to multiple files if you add them to the Oxygen project. Either link the entire folders that contain them(Link to External Folders in the popup menu) or create a logical folder in the project and add the individual files there. I recommend the latter if the files are spread to various locations in the file system.
Then you can select the files or folders from the project view and associate them with the corresponding validation(Configure Validation Scenario) and transformation scenario(Configure Transformation Scenario). In each case pick a scenario and press OK.
Then you can simply execute them in the project view in two easy steps:
- validation - In the project view select the files or the directory(either linked or logical) where they are located and from the popup menu choose Validate Selection
- transformation - from the popup menu choose Apply Transformation Scenario
In both cases the associated scenarios will be used, so you only have to set them once.
Regards,
Adrian