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

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

Open
chrkuhlmann opened this issue Jan 19, 2024 · 1 comment
Open

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

chrkuhlmann opened this issue Jan 19, 2024 · 1 comment

Comments

@chrkuhlmann
Copy link

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
Copy link
Member

pgfearo commented Jan 28, 2024

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.

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

2 participants