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

Can not use regex in xpath #2

Closed
GoogleCodeExporter opened this issue Mar 12, 2015 · 1 comment
Closed

Can not use regex in xpath #2

GoogleCodeExporter opened this issue Mar 12, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. find any attribute with regex
2. using [fn:matches(@* , "^a*")]

What is the expected output? What do you see instead?
I would like to see any node have attribute start with "a" if it dont use 
start-with.
such as 
<BBB type="aaa"/>
<BBB type="abb"/>

What version of the product are you using? On what operating system?
version 0.1
Windows XP

Please provide any additional information below.

I have xml content like this
<AAA>
<BBB type="aaa"/>
<BBB type="abb"/>
<BBB type="baa"/>
</AAA>

Original issue reported on code.google.com by anolpaisal on 29 Mar 2010 at 6:33

@GoogleCodeExporter
Copy link
Author

fn:matches is part of XPath 2.0.  I'm afraid py-dom-xpath only supports XPath 
1.0, and we have no plans to 
add support for 2.0 at the moment.

Original comment by damien.neil on 14 Apr 2010 at 6:37

  • Changed state: WontFix

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

No branches or pull requests

1 participant