Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: eXide - support XSLT file type #211

Open
ghost opened this issue Jan 8, 2019 · 3 comments
Open

Feature request: eXide - support XSLT file type #211

ghost opened this issue Jan 8, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 8, 2019

@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.

@dizzzz
Copy link
Member

dizzzz commented Jan 9, 2019

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.

@lagivan
Copy link

lagivan commented Jan 10, 2019

@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

@joewiz
Copy link
Member

joewiz commented Jan 10, 2019

@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!

duncdrum added a commit that referenced this issue Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants