HELP! Cannot debug xsl that uses xsl:result-document anymor

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

HELP! Cannot debug xsl that uses xsl:result-document anymor

Post 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. :?
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
sderrick
Posts: 269
Joined: Sat Jul 10, 2010 4:03 pm

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
noeagomez
Posts: 2
Joined: Thu Jun 06, 2013 11:50 pm
Location: Zapopan, Jalisco

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ionela
Posts: 407
Joined: Mon Dec 05, 2011 6:08 pm

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post 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
Ionela Istodor
oXygen XML Editor and Author Support
noeagomez
Posts: 2
Joined: Thu Jun 06, 2013 11:50 pm
Location: Zapopan, Jalisco

Re: HELP! Cannot debug xsl that uses xsl:result-document an

Post by noeagomez »

Thanks a lot. Now it works perfectly fine.
Post Reply