The current file is not recognized as XSLT

Having trouble installing Oxygen? Got a bug to report? Post it all here.
VideoBlaze
Posts: 2
Joined: Tue Aug 20, 2019 9:57 pm

The current file is not recognized as XSLT

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

Re: The current file is not recognized as XSLT

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

Re: The current file is not recognized as XSLT

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
VideoBlaze
Posts: 2
Joined: Tue Aug 20, 2019 9:57 pm

Re: The current file is not recognized as XSLT

Post 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.
Attachments
image.png
image.png (6.84 KiB) Viewed 1580 times
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: The current file is not recognized as XSLT

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply