SASDigitalHumanitiesTraining / TextEncoding

Text Encoding for Ancient and Modern Literature, Languages and History
9 stars 5 forks source link

How did Chris use XPath Builder? #29

Open bitparity opened 2 years ago

bitparity commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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