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

or operator in xpath expression #600

Open
gcelano opened this issue Mar 3, 2025 · 1 comment
Open

or operator in xpath expression #600

gcelano opened this issue Mar 3, 2025 · 1 comment

Comments

@gcelano
Copy link
Contributor

gcelano commented Mar 3, 2025

There are files such as stoa0045.stoa003.perseus-lat2.xml where the xpath expression contains or operators: replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div/*[self::tei:div or self::tei:p or self::tei:l][@n='$1'])" : it is not clear to me exactly why, but it seems that who annotated used a sort of catch-all expression. This underspecification, however, causes a number of issues when extracting passages. My suggestion is that we avoid this and just specify one element.

@lcerrato
Copy link
Contributor

lcerrato commented Mar 3, 2025

@gcelano
Review on this repo is underway so these sorts of irregularities will be addressed when the updates are made.
If there is something that requires more urgent work, I can do that between batches.
There is a lot here that is non-standard.

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