Hello, I am trying to get Berkeley DB XML's API represented as XPCOM, in the hopes of getting XQuery and its other features accessible to Javascript (especially cool potential with the POW extension to have the code work on the server-side as well as client side).
I mentioned this earlier, but I've read up a little more and have a few questions... >From the documentation at >http://www.mozilla.org/scriptable/xpidl/idl-authors-guide/index.html , I see that only certain specified types and non-scriptable "native types" can be used. Do I understand it correctly that each XPCOM can only create one class, and if you'd want more, you'd need to set up independent components for each class? (And even if you did this, you couldn't get around the limitation about methods with native types (which I guess one's other components would become) not being scriptable). The reason I ask is that the BDBXML API is of course quite sophisticated, and arguments and return values are frequently listed as specific classes. There are also namespaces (which I guess are not relevant in XPIDL/XPCOM?), operators, and other features in the C++ code which I don't see detailed as having equivalents in the XPIDL manual, so I'm wondering whether it is even possible to do this implementation faithfully. thanks in advance, Brett _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
