Oxygen no longer clears output when starting transformation

Oxygen general issues.
mjmanthey
Posts: 3
Joined: Sat Sep 20, 2008 4:46 am

Oxygen no longer clears output when starting transformation

Post by mjmanthey »

Hi,

I recently downloaded the new version of Oxygen. I had been using Oxygen 6.5 previously. I recently downloaded v9.3 just to try the new version out.

I noticed a difference between the debugger output between the two versions. In my stylesheets, I typically use xsl:result-document to create textual output files. When using v6.5, the debugger would clear the result documents each time you start a transformation. In version 9.3, the document contents are not cleared before the transformation begins. Instead, the respective document content is concatenated to each existing output document.

Is there a setting to clear the debugging output result documents when a transformation begins?

I don't believe this situation has anything to do with my source code. The only difference I can think of is Saxon: I am now using Saxon-B 9.0.0.6 where before I was using something else.

Thanks In Advance.

Matt
Radu
Posts: 9044
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen no longer clears output when starting transformation

Post by Radu »

Hi Matt,

We cannot reproduce the problem using a small sample XSL which splits an XML into different files. We'll request more details to your email address and then update the post if necessary.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mjmanthey
Posts: 3
Joined: Sat Sep 20, 2008 4:46 am

Re: Oxygen no longer clears output when starting transformation

Post by mjmanthey »

Hi Radu,

Sorry for the delay in response.

Here is content as an example:

Sample.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Files>
<File>File1.txt</File>
<File>File2.txt</File>
</Files>

Sample.xsl:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:saxon="http://saxon.sf.net/"
exclude-result-prefixes="xs"
extension-element-prefixes="saxon"
>

<xsl:template match="/Files">

<xsl:for-each select="File">
<xsl:result-document href="{.}" method="text" indent="yes">
<xsl:sequence select="concat('File: ', .)"/>
</xsl:result-document>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>


By simply debugging the XSLT transform, you can see that multiple output files tabs are generated. If you debug the transformation a second time, you can see that the result tabs are not cleared. Instead, the file content is concatenated.

I am using: <oXygen/> XML Editor 9.3, build 2008081313

I have not altered any preferences specifically that I know of.

Any help would be appreciated. Thanks in Advance.
Radu
Posts: 9044
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen no longer clears output when starting transformation

Post by Radu »

Hi Matt,

The problem seems to be occuring when the output files are located in a directory path containing spaces.
We reproduced it and will try to find a fix in time for Oxygen 10.0 (couple of days).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply