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

Documentation: add examples of queries made using XPATH #606

Open
ngirard opened this issue Mar 31, 2021 · 3 comments
Open

Documentation: add examples of queries made using XPATH #606

ngirard opened this issue Mar 31, 2021 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed type/documentation Documentation related issue

Comments

@ngirard
Copy link

ngirard commented Mar 31, 2021

Unless I missed something, the documentation doesn't explain how to query document metadata (searching "site:montferret.dev metadata" through Google returned nothing, neither did grepping the source code).

As an example, I tried to query the og:url metadata.
I tried variations of //meta[property='og:url']::attr(content), with or without the leading //, and with or without the attr(content), but was unsuccessful.

Cheers

@ziflex
Copy link
Member

ziflex commented Mar 31, 2021

Try to use XPATH function for that.

@ngirard
Copy link
Author

ngirard commented Mar 31, 2021

Thank you for your help !
It might be worth adding examples of queries made using XPATH in the docs, IMHO.
Feel free to close this issue whenever you want.

@ngirard ngirard changed the title Unsure how to query document metadata Documentation: add examples of queries made using XPATH Mar 31, 2021
@ziflex ziflex added good first issue Good for newcomers help wanted Extra attention is needed type/documentation Documentation related issue labels Apr 9, 2021
@suntong
Copy link

suntong commented Aug 7, 2021

Yeah, examples of queries made using XPATH would be super, whether in the doc or the cookbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed type/documentation Documentation related issue
Projects
None yet
Development

No branches or pull requests

3 participants