Re: [xml] Canonical XML



Thanks a lot! I clear understand that it's a very complicated issue.
Is it possible to have a configuration parameter (in XPath context?)
that tells is inherited namespaces and "parent:" namespace support
enabled or not:  if this flag is set to "true" then libxml2 does add
all required namespaces and does correct "parent" lookup for namespaces;
otherwise it works the same way as now. I think that implementing
it this way will provide better XPath 1.0 support for applications
that will need this feature and in the same this will not impact anyone else.

Aleksey.


I have been thinking about this issues for a couple months now and
I still don't have a *good* way to get this fixed. Basically the information
would have to go into the XPath node-set because completely changing
the way namespace are represented would be a serious break as well as far
too heavy (i.e. blindly adding namespace nodes for namespaces in scope on every
node, on large documents with large set of predefined namespace like say
an Open Office doc this could amount to hundreds of thousand node used only
for XPath model compatibility, not the way to go).
So I have one more incentive to get this fixed, but I need to put more thinking in this, sorry...

Daniel







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]