[Phoenix] Re: Bug in source node retrieval
Andreas Wuest
awuest at student.ethz.ch
Wed Sep 20 14:43:43 CEST 2006
Hi Thomas
On 20.9.2006 13:54 Uhr, Comiotto Thomas wrote:
> Hi Andi
>
>> Hmm, well, I'm a bit wary about this. Because e.g. Atom entries are
>> mostly like this (and falling back to namespace-unaware mode is no
>> option, if I understand that mode correctly, because Atom entries can
>> contain mixed namespaces, e.g. the can contain XHTML markup inside
>> <atom:content> elements).
>
> Should be no problem because, ehm.. ns unaware mode means ignoring
> namespaces. The idea is that only local names of elements are taken into
> account when assembling the xpath expression (*[local-name() =
> 'content']/*[local-name() = 'p']/) - so mixing namespaces is no problem.
Heh... */me slaps head against keyboard*
> The only problem one can run into with this approach is in situations
> where the xpath expression becomes ambiguous when ignoring ns
> information, i.e. a document that has
>
> foo:table/foo:tr/xhtml:td/text()
>
> xhtml:table/xhtml:tr/foo:td/text()
>
> Never came across this, but it can't be ruled out either of course;)
Yeah, never underestimate the things users can and will come up with... ;)
--
Kind regards,
Andi
More information about the Phoenix
mailing list