Better XPath suggestions
Posted: Tue Dec 12, 2017 4:19 pm
Hi,
I've noticed that the context-aware XPath suggestions fail in following situations:
- when adding boolean operators 'and' or 'or' in the expression, no context-specific suggestions are given after it. E.g. -> in this case, the auto-completion stops working after 'or', even though it should behave as if it were the beginning of the expression.
- when you have a variable that contains a nodeset, no context-specific suggestions are given when referring to that variable. E.g. with this input: and this XSL: -> 'subNode' should be suggested after the slash. Obviously this only works when the variable is a nodeset.
This would be very helpful when dealing with more complicated XPath suggestions.
Thanks for considering this.
I've noticed that the context-aware XPath suggestions fail in following situations:
- when adding boolean operators 'and' or 'or' in the expression, no context-specific suggestions are given after it. E.g.
Code: Select all
<xsl:if test="node/subnode or..."/>
- when you have a variable that contains a nodeset, no context-specific suggestions are given when referring to that variable. E.g. with this input:
Code: Select all
<node><subnode/></node>
Code: Select all
<xsl:variable name="aNode" select="node"/>
<xsl:value-of select="$aNode/..."/>
This would be very helpful when dealing with more complicated XPath suggestions.
Thanks for considering this.