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

How did Chris use XPath Builder? #29

Open
bitparity opened this issue Apr 28, 2022 · 2 comments
Open

How did Chris use XPath Builder? #29

bitparity opened this issue Apr 28, 2022 · 2 comments

Comments

@bitparity
Copy link

So during yesterday's lecture, Chris briefly showed XPath builder in OxygenXML, and I remember there were these... arrows or brackets or something (?) underneath the first XPath that allowed him to further refine the search separately as different steps.

I've tried googling XPath builder in OxygenXML but any explanations for its usage just seem like it's a separate but larger XPath window.

Can you explain how you used XPath builder in the Zoom presentation yesterday?

@cmohge1
Copy link
Contributor

cmohge1 commented Apr 28, 2022

Ah yes! You select the //* in the XPath search bar

Screenshot 2022-04-28 at 21 18 02

You will then get the XPath and XQuery builder window
Screenshot 2022-04-28 at 21 19 45

You'll then select the red triangle to run the query.

E.g. Use the previous expression to build a list separated by commas

//body/div[1]//speaker
=> distinct-values()
=> sort()
=> string-join(', ')

@bitparity
Copy link
Author

Aaaaah thank you. I looked it up, and I see it's called an "arrow operator." This helps big time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants