eXide icon indicating copy to clipboard operation
eXide copied to clipboard

Feature request: eXide - support XSLT file type

Open ghost opened this issue 6 years ago • 3 comments

@lagivan commented on Aug 12, 2014, 2:05 PM UTC:

It'd be very helpful to have XSLT file type supported in eXide, plus:

  • "Function doc" feature for standard and custom functions;
  • Autocomplete feature.

This issue was moved by duncdrum from eXist-db/exist#292.

ghost avatar Jan 08 '19 11:01 ghost

Please could you elaborate on

  • what xslt support means for you
  • what do you mean with “"Function doc" feature for standard and custom functions;” I don’t understand sorry.

What sometimes helps is to write as a use case:

As a x i’d Like to have y so I can do z.

dizzzz avatar Jan 09 '19 21:01 dizzzz

@dizzzz in my opinion, the minimum XSLT support should include:

  • availability of XSLT option in "File Type" drop down in the top-right corner of eXide
  • automatic detection of XSLT file type for *.xsl and *.xslt files (currently XQuery file type is detected)
  • XSLT nodes should be foldable like in XML file type
  • function doc should work for XSLT file type similar to XQuery file type. Function doc is the function that can be invoked using "F1" shortcut or via the menu "Navigate - Function doc" and it shows the popup window with the description of the function and its parameters. It works now because XQuery file type is assigned to XSLT files but if I switch to XML file type, it does not work.
  • finally in current XQuery file type the XSLT document with declared namespace like this <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> shows the following error: error found while executing expression: org.exist.xquery.XPathException: err:XPST0003 unexpected token: xmlns [at line 6, column 17]

Use cases: As a developer, I'd like to be able to fold/expand nodes in XSLT documents As a developer, I'd like to run Function doc using "F1" shortcut in XSLT documents As a developer, I'd like both *.xsl and *.xslt files to be automatically detected as XSLT documents As a developer, I'd like to see only relevant error in XSLT documents

lagivan avatar Jan 10 '19 06:01 lagivan

@lagivan See my PR #212 which at least treats XSLT as XML files. I like your other ideas for enhancing XSLT support in eXide. I'd welcome such a contribution!

joewiz avatar Jan 10 '19 18:01 joewiz