DeltaXML / vscode-xslt-tokenizer

VSCode extension for highlighting XSLT and XPath (upto 3.0/3.1)
MIT License
46 stars 4 forks source link

descendant::, descendant-or-self::, // not working #134

Open chrkuhlmann opened 8 months ago

chrkuhlmann commented 8 months ago

I cannot get the "descendant::" "descendant-or-self::" path expressions or their abbreviated forms like "//" to work for goto XPath

e.g. neither descendant-or-self::b nor /descendant-or-self::b works for

<a>
    <b>
        <c>
            <d txt="e" />
        </c>
    </b>
</a>

Also, I'd like to suggest a "select XPath" feature that selects the XPath result in the current document

pgfearo commented 7 months ago

The 'Goto XPath' command is very basic, it only supports the basic XPath location - using the child axis.

In the future I hope to integrate a separate fully functional XPath editor for either selecting nodes in the current document or returning values in a table or JSON notation, this tool will use the Saxon processor and thus support any kind of XPath expression.

I will also add a 'select XPath' feature that copies the current XPath of the active document onto the clipboard.