Ticket #81 (new defect)
local-name() doesn't work with attributes
| Reported by: | dackze+genshi@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | XPath support | Version: | devel |
| Keywords: | Cc: | james.harris@…, remy.blank@… |
Description
Given:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/"> <foo py:match="foo"> ${select('@*[local-name() = "c"]')} </foo> <foo a="1" b="2" c="3" /> </html>
The following is produced:
<html xmlns="http://www.w3.org/1999/xhtml"> <foo> </foo> </html>
But you'd expect:
<html xmlns="http://www.w3.org/1999/xhtml"> <foo> 3 </foo> </html>
select('@*[local-name() = "c"]') should be equivalent to select('@c').
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

