
Hi, In the Projects View in v10.3, the context menu items for files and folders included one that allowed the application of a Transformation Scenario that hadn't yet been associated with the document(s) -- "Transform with..." or some such. (It was analogous to validating with an external schema. You picked the Transformation Scenario you wanted to run, and voila.) This menu option is gone from 11.0 and I miss it. It was especially useful for transforming documents in batches. I suspect there is another way to achieve the same thing. Any tips? Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Hi Wendell, That functionality should be covered now with the support to associate transformation scenarios on the project selected files, including folders. So you can use the "Configure transformation scenario..." action on a folder (or on your selection) and select the scenario then close the dialog with the "Transform now" button if you want the scenario to be applied immediately after closing the dialog. Further you can trigger the transformation again with the "Apply transformation scenario" action. Thinking now about this I think it may be good to add also the "Transform with..." action back as that allows applying a scenario without associating it with the documents (or folders). Let me know also if your use case is not covered by this scenario association that we have in version 11. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Wendell Piez wrote:
Hi,
In the Projects View in v10.3, the context menu items for files and folders included one that allowed the application of a Transformation Scenario that hadn't yet been associated with the document(s) -- "Transform with..." or some such. (It was analogous to validating with an external schema. You picked the Transformation Scenario you wanted to run, and voila.)
This menu option is gone from 11.0 and I miss it. It was especially useful for transforming documents in batches. I suspect there is another way to achieve the same thing. Any tips?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Batch transformations is something I've been trying to do for a while. I have one XSL and I was to run it against ~50 XML files. Currently I have to run something like this in a dos shell: java -jar saxon9.jar -s:. -xsl:transform.xsl Under "Configure transformation scenario..." it allows you to select one XSL and one XML. It would be nice if you could select a directory for the XML (so run against all XML in that directory), or specify *.xml Is there a way around this? J. -----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of George Cristian Bina Sent: 23 October 2009 19:01 To: Wendell Piez Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] Batch transformations Hi Wendell, That functionality should be covered now with the support to associate transformation scenarios on the project selected files, including folders. So you can use the "Configure transformation scenario..." action on a folder (or on your selection) and select the scenario then close the dialog with the "Transform now" button if you want the scenario to be applied immediately after closing the dialog. Further you can trigger the transformation again with the "Apply transformation scenario" action. Thinking now about this I think it may be good to add also the "Transform with..." action back as that allows applying a scenario without associating it with the documents (or folders). Let me know also if your use case is not covered by this scenario association that we have in version 11. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Wendell Piez wrote:
Hi,
In the Projects View in v10.3, the context menu items for files and folders included one that allowed the application of a Transformation Scenario that hadn't yet been associated with the document(s) -- "Transform with..." or some such. (It was analogous to validating with an external schema. You picked the Transformation Scenario you wanted to run, and voila.)
This menu option is gone from 11.0 and I miss it. It was especially useful for transforming documents in batches. I suspect there is another way to achieve the same thing. Any tips?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Dear John, When you configure a transformation scenario to transform XML with XSLT you can choose indeed one XML file and one XSLT file. However, you can use editor variables to specify the XML file, for example if you specify the XML file as ${currentFileURL} (which is what oXygen sets as default) then this will be expanded at runtime to whatever the current file is and you will be able to reuse a scenario for other files. From the project view you can associate a scenario on a folder or on multiple files and you can also trigger the transformations on a folder or on multiple files. When you select a folder and use the "Apply Transformation Scenario" action then all the files from that folder will be iterated, each becoming the current file at its turn and the scenario associated with each file will be executed. So, in order to apply a stylesheet on the files from a folder all you need is a scenario that specifies as XML URL ${currentFileURL} and then associate it on the folder from the project view and trigger the batch transformation also from the project view with the Apply Transformation Scenario" contextual action. In version 11 we added also XProc support. You should be able to create and execute from oXygen an XProc pipeline that can iterate over the files in a folder and apply an XSLT transformation on each. Here it is an example. It assumes you have a structure like test.xpl xml/ test1.xml test2.xml etc. xsl/ test.xsl results/ The pipeline test.xpl will apply the xsl/test.xsl stylesheet on each of the files from the xml folder and the results will be placed in the results folder, with files having the same names as the XML input documents. Here it is the test.xpl pipeline: <?xml version="1.0" encoding="UTF-8"?> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step"> <p:directory-list path="xml"/> <p:filter select="//c:file"/> <p:for-each name="iterate"> <p:load> <p:with-option name="href" select="concat('xml/', /*/@name)"/> </p:load> <p:xslt> <p:input port="parameters"><p:empty/></p:input> <p:input port="stylesheet"> <p:document href="xsl/test.xsl"/> </p:input> </p:xslt> <p:store> <p:with-option name="href" select="concat('results/', /*/@name)"> <p:pipe port="current" step="iterate"/> </p:with-option> </p:store> </p:for-each> </p:declare-step> Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com John Fitzpatrick wrote:
Batch transformations is something I've been trying to do for a while. I have one XSL and I was to run it against ~50 XML files. Currently I have to run something like this in a dos shell:
java -jar saxon9.jar -s:. -xsl:transform.xsl
Under "Configure transformation scenario..." it allows you to select one XSL and one XML. It would be nice if you could select a directory for the XML (so run against all XML in that directory), or specify *.xml
Is there a way around this? J.
-----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of George Cristian Bina Sent: 23 October 2009 19:01 To: Wendell Piez Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] Batch transformations
Hi Wendell,
That functionality should be covered now with the support to associate transformation scenarios on the project selected files, including folders. So you can use the "Configure transformation scenario..." action on a folder (or on your selection) and select the scenario then close the dialog with the "Transform now" button if you want the scenario to be applied immediately after closing the dialog. Further you
can trigger the transformation again with the "Apply transformation scenario" action.
Thinking now about this I think it may be good to add also the "Transform with..." action back as that allows applying a scenario without associating it with the documents (or folders). Let me know also
if your use case is not covered by this scenario association that we have in version 11.
Best Regards, George

Although all my other XSL-FO scenarios execute properly, I have a scenario that in the Scenario debug mode runs to completion, but then causes Oxygen 11 to become unresponsive. I am not sure if the list accepts attachments, but have attached the two files. Outside of Oxygen, using the batch file, (call fop -d -c fopConfiguration.xml -xsl XSLT\15CatalogsToPdf.xsl -xml work\POFIS-Ceska-Republika.xml -pdf work\pdf\POFIS-Ceska-Republika.pdf) the XSL-FO style sheet executes properly. Is this of interest to you? Mark

Hello, Thank you for the files but I could not reproduce the problem. What is the Oxygen build number displayed in the Help -> About dialog? On what platform do you run Oxygen? Do you reproduce the problem in Oxygen 11 every time that you transform POFIS-Ceska-Republika.xml + 15CatalogsToPdf.xsl? What is the last debugger action that you run before the unresponsive state: Run, Run to End, Step Into, Step Over? Can you check if the whole FO document is generated in the Text output view of the debugger before the unresponsive state, that is the content of the Text output view ends with </fo:root>? Thank you, Sorin Mark Wilson wrote:
Although all my other XSL-FO scenarios execute properly, I have a scenario that in the Scenario debug mode runs to completion, but then causes Oxygen 11 to become unresponsive. I am not sure if the list accepts attachments, but have attached the two files.
Outside of Oxygen, using the batch file, (call fop -d -c fopConfiguration.xml -xsl XSLT\15CatalogsToPdf.xsl -xml work\POFIS-Ceska-Republika.xml -pdf work\pdf\POFIS-Ceska-Republika.pdf) the XSL-FO style sheet executes properly.
Is this of interest to you?
Mark

Dear George, At 02:01 PM 10/23/2009, you wrote:
That functionality should be covered now with the support to associate transformation scenarios on the project selected files, including folders. So you can use the "Configure transformation scenario..." action on a folder (or on your selection) and select the scenario then close the dialog with the "Transform now" button if you want the scenario to be applied immediately after closing the dialog. Further you can trigger the transformation again with the "Apply transformation scenario" action.
Thanks: I knew it was something simple like that.
Thinking now about this I think it may be good to add also the "Transform with..." action back as that allows applying a scenario without associating it with the documents (or folders). Let me know also if your use case is not covered by this scenario association that we have in version 11.
I think my immediate use case is probably covered (I'll get back to you if not), but I also agree that is sometimes useful to run a transformation scenario without making a formal association or changing the association you have. Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
participants (5)
-
George Cristian Bina
-
John Fitzpatrick
-
Mark Wilson
-
Sorin Ristache
-
Wendell Piez