Page 1 of 1

The current file is not recognized as XSLT

Posted: Tue Aug 20, 2019 10:17 pm
by VideoBlaze
I am encountering an Invalid input dialog box when I attempt to debug an XSLT stylesheet. About the time I installed the 21.1 build 2019071807 these messages started to appear, but could be purely coincidental.

The stylesheets are recognized as XSLT framework files:
Document type XSLT (C:\Program Files\Oxygen XML Editor 21\frameworks\xslt\xslt.framework)

I cannot find any other XML settings that seem to be the cause.

Suggestions?

Re: The current file is not recognized as XSLT

Posted: Wed Aug 21, 2019 9:42 am
by adrian
Hello,

On what platform are you using Oxygen (Windows, macOS, Linux)?
Did you upgrade from an older version, or an older build of the same version?
On macOS, if you upgrade in the same folder as an existing (older) version, it is recommended to Replace the older version. Never use Merge as it mixes/merges libraries from the two versions which can lead to a broken installation with unexpected/unhandled errors.

Are there more details (a longer message) in this "Invalid input" dialog box?
In the XSLT Debugger perspective check the Debugger engine combo box from the toolbar (second row, leftmost). Are there other engines than Xalan and Saxon in the list? Please also check the same combo box from the XQuery Debugger perspective.

Regards,
Adrian

Re: The current file is not recognized as XSLT

Posted: Wed Aug 21, 2019 9:46 am
by adrian
Hi again,

One other thing, check in Options > Preferences > File Types for "xsl" and "xslt" extensions. They should be associated with the "XSL Editor".

Regards,
Adrian

Re: The current file is not recognized as XSLT

Posted: Wed Aug 21, 2019 11:01 pm
by VideoBlaze
The File Type settings for extensions "xsl" and "xslt" were set to XML editor. I changed both extensions to used XSL Editor, applied my changes, then closed the Preferences dialog box. In the XSLT Debugger perspective, my XLST files we not recognized.

Closing and restarting Oxygen resolved the issue.


To answer your previous questions, my platform is Windows 10.

Yes, this is an upgrade, though it seems the installer removes the previous version and then installs all the files (so anything I may have previously changed would be replaced).

This is the Invalid input dialog box
Image

The XLST Debugger perspective Debugger engine combo box lists Xalan, Saxon6.5.5, Saxon-HE 9.8.0.12, Saxon-PE 9.8.0.12, and Saxon-EE 9.8.0.12.

The XQuery Debugger perspective lists Saxon-HE XQuery 9.8.0.12, Saxon-PE XQuery 9.8.0.12, and Saxon-EE XQuery 9.8.0.12.

Re: The current file is not recognized as XSLT

Posted: Thu Aug 22, 2019 11:03 am
by adrian
Hi,

Thank you for the screenshot.
OK, so the issue was the File Types configuration for XSL files. After changing the file type to XSL Editor the files have to be closed and reopen (or application restarted), so that the XSL files are open in the correct editor type.

Regards,
Adrian