-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for XSLT 3.0 xsl:package #21
Comments
How I can set local path to package for linter? May be, in comment? |
I believe this error message is coming from the Saxon Processor invoked from an XSLT task, not the linter. The Saxon documentation explains how package names are resolved using a configuration file ‘xsltpackages’ element here. The location of this Saxon configuration file can be specified in an XSLT task using the ‘configFilename’ property. |
Looking at the details more closely I realise that it is the linter causing the error message for f:outline. I need to read up on the xsl:use-package instruction more fully to see what is the best way to remedy this issue. |
I think, we need set in config for this extension (in .vscode/settings.json) packages names and file paths. |
I will add what you suggest as a first option. Longer term I think I may need to add an extension setting that identifies the Saxon configuration file that I believe is used by Saxon to resolve the package names. |
There is now a VSCode extension setting |
I try to add But "Go to definition" does not work in XSLT: https://github.com/test-st-petersburg/DocTemplates/blob/c2231445733ca7e3cf79dddf8873fc21c48b4d54/tools/xslt/Build-OOMacroLib.xslt#L8-L10 |
And one more suggestion: please add one new setting for specifying directories, where your package will automatically search for XSLT packages, determine their names and versions by root node attributes |
Apologies, I had missed the last two comments! I will reopen this issue. |
Initially, the main goal was to prevent the linter reporting 'undefined' errors for functions, variables etc. defined in another package. I will look to add 'Goto Definition' (and possibly 'Rename Symbol') support for symbols referenced in the The |
Example:
but using
<xsl:apply-templates mode="f:outline" ... />
generate error: "templates for mode not found".The text was updated successfully, but these errors were encountered: