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

XPath 2 lower-case() and upper-case() functions #5

Merged
merged 2 commits into from
Nov 19, 2016
Merged

Conversation

wilx
Copy link
Contributor

@wilx wilx commented Feb 3, 2016

I have implemented two minor additions to XML::XPathEngine::Function: lower-case() and upper-case().

I would like to have it so that I can use it during parsing of dates in HTML:

$html_meta_date_str = $tree->findvalue(
    '//head/meta[lower-case(@property)="published-date"]/@content');

@mirod mirod merged commit 73b8c1c into mirod:master Nov 19, 2016
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

Successfully merging this pull request may close these issues.

2 participants