oXygen XSLT transformation scenario with -it:main and xsl:result-document

I have a question about whether something in oXygen is a bug, or intended. Suppose I have an XSLT transformation that uses a named template as its initial template, and that writes output documents using xsl:result-document. When I configure a transformation scenario in oXygen, it seems that I need to declare a dummy output file using "Save as", or no output is written at all (despite the xsl:result-document instruction). In other words, I have to put something like Save as: dummy-out.xml and then xsl:result-document succeeds in writing output. Is this a bug or a feature? David -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/

Hi David, I cannot reproduce this problem, here it is the test stylesheet I used: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template name="main"> <xsl:result-document href="x.xml"> <x>test</x> </xsl:result-document> </xsl:template> </xsl:stylesheet> the x.xml file is created next to the stylesheet. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 5/5/14, 6:07 PM, David Sewell wrote:
I have a question about whether something in oXygen is a bug, or intended.
Suppose I have an XSLT transformation that uses a named template as its initial template, and that writes output documents using xsl:result-document.
When I configure a transformation scenario in oXygen, it seems that I need to declare a dummy output file using "Save as", or no output is written at all (despite the xsl:result-document instruction). In other words, I have to put something like
Save as: dummy-out.xml
and then xsl:result-document succeeds in writing output.
Is this a bug or a feature?
David

Hmm, I'll see if I can simplify my case to a reproducible problem. The stylesheet is writing multiple output documents using xsl:for-each, so possibly that has something to do with the problem. David On Mon, 5 May 2014, George Cristian Bina wrote:
Hi David,
I cannot reproduce this problem, here it is the test stylesheet I used:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template name="main"> <xsl:result-document href="x.xml"> <x>test</x> </xsl:result-document> </xsl:template> </xsl:stylesheet>
the x.xml file is created next to the stylesheet.
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/5/14, 6:07 PM, David Sewell wrote:
I have a question about whether something in oXygen is a bug, or intended.
Suppose I have an XSLT transformation that uses a named template as its initial template, and that writes output documents using xsl:result-document.
When I configure a transformation scenario in oXygen, it seems that I need to declare a dummy output file using "Save as", or no output is written at all (despite the xsl:result-document instruction). In other words, I have to put something like
Save as: dummy-out.xml
and then xsl:result-document succeeds in writing output.
Is this a bug or a feature?
David
-- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/

Well, this doesn't work for me. My steps: 1. Copy the test stylesheet, save as test.xsl 2. Define a transformation scenario, set initial template to "main" 3. Run the transform No output 4. Define a "save as" file, like x.xml 5. Run the transform File "x.xml" is created in the directory with test.xsl. So... something in my user environment is maybe the problem? I am running 15.2, build 2014022718, under OS X. I'll try this on a couple of other computers to see what happens. David On Mon, 5 May 2014, George Cristian Bina wrote:
Hi David,
I cannot reproduce this problem, here it is the test stylesheet I used:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template name="main"> <xsl:result-document href="x.xml"> <x>test</x> </xsl:result-document> </xsl:template> </xsl:stylesheet>
the x.xml file is created next to the stylesheet.
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/5/14, 6:07 PM, David Sewell wrote:
I have a question about whether something in oXygen is a bug, or intended.
Suppose I have an XSLT transformation that uses a named template as its initial template, and that writes output documents using xsl:result-document.
When I configure a transformation scenario in oXygen, it seems that I need to declare a dummy output file using "Save as", or no output is written at all (despite the xsl:result-document instruction). In other words, I have to put something like
Save as: dummy-out.xml
and then xsl:result-document succeeds in writing output.
Is this a bug or a feature?
David
-- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/

Hi David, Please disable the Options->Preferences -- XML / XSLT-FO-XQuery -- Create transformation temporary files in system temporary directory and you should get the output next to the stylesheet. An alternative will be to control the output by specifying an absolute location, I think you can either pass a parameter or compute the base output folder from the stylesheet system identifier. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 5/6/14, 5:17 PM, David Sewell wrote:
Well, this doesn't work for me. My steps:
1. Copy the test stylesheet, save as test.xsl
2. Define a transformation scenario, set initial template to "main"
3. Run the transform
No output
4. Define a "save as" file, like x.xml
5. Run the transform
File "x.xml" is created in the directory with test.xsl.
So... something in my user environment is maybe the problem? I am running 15.2, build 2014022718, under OS X.
I'll try this on a couple of other computers to see what happens.
David
On Mon, 5 May 2014, George Cristian Bina wrote:
Hi David,
I cannot reproduce this problem, here it is the test stylesheet I used:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template name="main"> <xsl:result-document href="x.xml"> <x>test</x> </xsl:result-document> </xsl:template> </xsl:stylesheet>
the x.xml file is created next to the stylesheet.
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/5/14, 6:07 PM, David Sewell wrote:
I have a question about whether something in oXygen is a bug, or intended.
Suppose I have an XSLT transformation that uses a named template as its initial template, and that writes output documents using xsl:result-document.
When I configure a transformation scenario in oXygen, it seems that I need to declare a dummy output file using "Save as", or no output is written at all (despite the xsl:result-document instruction). In other words, I have to put something like
Save as: dummy-out.xml
and then xsl:result-document succeeds in writing output.
Is this a bug or a feature?
David

Aha, that was exactly the problem, I had "Create transformation temporary files in system temporary directory" set. So I found all my output files under /var/folders/nn/7t1m782n6xndbpf6qkf0nl3m0000gn/T/OxygenXMLTemp which I didn't even know existed. :-) I don't remember that I ever touched that option so perhaps in an earlier version of oXygen the default setting was "on" and it persisted until now. David On Wed, 7 May 2014, George Cristian Bina wrote:
Hi David,
Please disable the Options->Preferences -- XML / XSLT-FO-XQuery -- Create transformation temporary files in system temporary directory and you should get the output next to the stylesheet.
An alternative will be to control the output by specifying an absolute location, I think you can either pass a parameter or compute the base output folder from the stylesheet system identifier.
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/6/14, 5:17 PM, David Sewell wrote:
Well, this doesn't work for me. My steps:
1. Copy the test stylesheet, save as test.xsl
2. Define a transformation scenario, set initial template to "main"
3. Run the transform
No output
4. Define a "save as" file, like x.xml
5. Run the transform
File "x.xml" is created in the directory with test.xsl.
So... something in my user environment is maybe the problem? I am running 15.2, build 2014022718, under OS X.
I'll try this on a couple of other computers to see what happens.
David
On Mon, 5 May 2014, George Cristian Bina wrote:
Hi David,
I cannot reproduce this problem, here it is the test stylesheet I used:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template name="main"> <xsl:result-document href="x.xml"> <x>test</x> </xsl:result-document> </xsl:template> </xsl:stylesheet>
the x.xml file is created next to the stylesheet.
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/5/14, 6:07 PM, David Sewell wrote:
I have a question about whether something in oXygen is a bug, or intended.
Suppose I have an XSLT transformation that uses a named template as its initial template, and that writes output documents using xsl:result-document.
When I configure a transformation scenario in oXygen, it seems that I need to declare a dummy output file using "Save as", or no output is written at all (despite the xsl:result-document instruction). In other words, I have to put something like
Save as: dummy-out.xml
and then xsl:result-document succeeds in writing output.
Is this a bug or a feature?
David
-- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: dsewell@virginia.edu Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/
participants (2)
-
David Sewell
-
George Cristian Bina