Closed jperterm closed 2 years ago
Thanks for reporting this issue, I'll report back when I know more.
After initial investigation:
The XSLT tokeniser is at fault here. It is tokenizing the use
attribute value as XPath because the 'use' attribute is an XPath expression on the xsl:key
instruction. (The linter is schema-aware and is not expecting an XPath token here.)
The tokenizer must treat xsl:global-context-item
and xsl:context-item
elements as a special case for the 'use' attribute.
Linter and Auto-Complete for use
attribute on xsl:global-context-item
and xsl:context-item
are now fixed. Awaiting release.
Released
When using the
use
attribute withxsl:context-item
, it is highlighted as an error even though it is valid XSL. It seems like the starting quote is treated as value foruse
.