Ticket #103 (closed defect: fixed)
XPath query on attribute value fails when namespaces are present
| Reported by: | phallix | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1.8 |
| Component: | XPath | Version: | 3.1.6 |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | Other | |
| Operating system: | MacOS |
Description
I'm new to REXML (and Ruby) so I hope I haven't simply done something stupid.
When I use an XPath expression that looks for specific attribute values, ie. "link[@rel='alternate']" I don't get any results. I found that if I strip the namespaces from the root element, then it works. Unit test attached.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
