60 |
# We compare the hash of the ns against the hash of the element's ns |
# We compare the hash of the ns against the hash of the element's ns |
61 |
# this avoids an expensive unicode character-by-character comparison, |
# this avoids an expensive unicode character-by-character comparison, |
62 |
# in exchange for hash computation which is cached. |
# in exchange for hash computation which is cached. |
63 |
if result.attributes.has_key(ns) or hash(element.ns) == h: |
if result.attributes.has_key(ns) or hash(result.ns) == h: |
64 |
processed.append(handler) |
processed.append(handler) |
65 |
result = handler(result, context) |
result = handler(result, context) |
66 |
except StopTransform, data: |
except StopTransform, data: |