Page 1 of 1
HELP! Cannot debug xsl that uses xsl:result-document anymor
Posted: Fri May 10, 2013 7:33 pm
by sderrick
I just upgraded to 14.2, Linux stand alone Oxygen
I needed to debug a script I hadn't looked at since I upgraded. Now the debugger reports an error as soon as I encounter this line, #154
<xsl:result-document href="{$filename}" format="csps-xhtml">
Of course the script runs fine by applying it in the editor or in my command line build.
the error is
System ID: /home/scott/workspace/books_changes2/xslt/csps-tei2xhtml-book.xsl
Severity: fatal
Description: javax.xml.transform.TransformerException: java.io.FileNotFoundException: /home/scott/workspace/books_changes2/xslt/peo/epub_peo_book_partTitlePage.html (No such file or directory)
Start location: 154:0
I thought it may have been that I also switched to using the Sun 1.7 JDK, so I switched back to the bundled OpenJRE and still have the problem.
I'm hoping I just need to change some setting and that sits pilot error!
This is critical as I am stopped in my tracks because of this behavior.

Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Fri May 10, 2013 8:14 pm
by sderrick
I just started up 14.1 to verify the problem was in 14.2 and it runs the script fine in the debugger...
Scott
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Fri May 10, 2013 8:36 pm
by Costin
Hello,
Thank you for reporting your issue.
In order to investigate this, if possible, please send us some sample file (or even a code snippet) for which this is reproducible.
In order to be kept private, you can send the files on our support email address, which is support AT oxygenxml DOT com
Regards,
Costin
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Fri May 10, 2013 10:08 pm
by sderrick
If or when I find the time I can do that.
In the mean time I've gone back to 14.1
Scott
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Thu Jun 06, 2013 11:56 pm
by noeagomez
Hi there,
I'm having the same problem. Using <xsl:result-document> works perfectly in the command line and the oXygen Editor perspective but not in the XSLT Debugger. Here's a sample code I'm working with:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:template match="/" mode="#default">
<xsl:result-document href="foo/bar/baz/sample.xml" method="xml" indent="yes">
<xsl:apply-templates select="/" mode="copy"/>
</xsl:result-document>
</xsl:template>
<xsl:template match="/" mode="copy">
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>
Any help would be appreciated.
Thanks,
Noe
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Tue Jun 11, 2013 8:46 pm
by adrian
Hello Noe,
Thank you for letting us know about this.
Indeed, there seems to be a problem with xsl:result-document in the XSLT debugger in certain contexts, as per your example. We are currently analyzing this and we will come back to you as soon as we have the results.
Regards,
Adrian
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Wed Jun 12, 2013 4:00 pm
by adrian
Hi again,
We've analyzed the problem and this bug in the XSLT debugger is caused by the href of the xsl:result-document pointing to a file from a non-existing folder path.
If you manually create the folder structure 'foo/bar/baz/' it will run correctly in the debugger.
Alternatively, to do this quickly, you could create and run a transformation scenario for the stylesheet at least once. This will create the file and folder structure and the debugger will then work correctly.
I've logged this problem to our issue tracking tool and it will be resolved in the next release of Oxygen.
Regards,
Adrian
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Tue Jun 18, 2013 12:41 pm
by ionela
Hello,
I just wanted to let you know that this problem has been resolved in the latest maintenance build of Oxygen 15.0, 2013061418 (released on June 18th):
The debugging session ended abruptly with a FileNotFoundException when encountering an xsl:result-document with a href pointing to a file from a nonexistent parent folder.
You can download the latest maintenance build from our web site:
http://www.oxygenxml.com/download.html
The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2013061418
You can follow the release/build RSS feed here:
http://www.oxygenxml.com/rssBuildID.xml
Let us know if you encounter further problems with this new build.
Regards,
Ionela
Re: HELP! Cannot debug xsl that uses xsl:result-document an
Posted: Thu Jul 25, 2013 1:26 am
by noeagomez
Thanks a lot. Now it works perfectly fine.