El Jueves, 3 de Abril de 2008, David Viamonte escribió: > Dear all, > > Let me introduce a question to the list. Your help will be greatly > appreciated! > > XML documents that are managed via XCAP means typically fall into a > well-known XCAP Application Usage. Typically, each XCAP Application Usage > may declare a default XML namespace. XML documents within such application > may or may not include declaration of the default namespace. In case the > default namespace declaration is not present in the doc, the XML parser > should assume that elements defined in the well-known default namespace > may be present anyway. > > I hope I am right till now, but please correct me if I'm wrong :-) > > Now, question is the following: what if an XML document within a certain > AUID contains XML elements declared under a namespace that is different > from the default one? Is it correct -from the XCAP perspective- not to > declare non-default (and used) namespace in the XML doc? > > My assumption is that from the XML perspective it is not strictly > incorrect not to declare non-default namespaces, bun if two independent > XCAP implementations are intending to exchange XML content, and let the > remote endpoint understand such content, THEN all namespaces must be > declared. Otherwise, an element belonging to an unknown namespace would > systematically be ignored by the remote endpoint. > > Furthermore, if someone is aware that all non-default namespaces used in > the XML document within the XCAP context MUST be declared, please let me > know about that...
Hi David, I asked a related question some weeks ago: https://lists.cs.columbia.edu/pipermail/sip-implementors/2009- November/023884.html Unfortunatelly my conclusion is that XCAP specs break the official XLM/Xpath usages as I explain in same thread: https://lists.cs.columbia.edu/pipermail/sip-implementors/2009- November/023893.html IMHO all this stuff will be simplified in case: - The XML document declares all the used namespaces (also the app default namespace). - The XCAP Xpath query also includes all the required namespaces. - This is: forget the concept of XCAP app default namespace at all. Do you have any new about this issue? Thanks a lot. -- Iñaki Baz Castillo <[email protected]> _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
