Confirmed users
146
edits
m (→API Notes) |
|||
Line 134: | Line 134: | ||
I think we should add a generateXPointer function too, since it's trivial to implement once we have implemented generateXPath and the resolver. You just need to serialize the namespace mappings from the resolver following the [http://www.w3.org/TR/xptr-xmlns/ XPointer xmlns() scheme] and use the [http://www.w3.org/TR/xptr-xpointer/ XPointer xpointer() scheme] for the result of generateXPath. -- Peter Van der Beken | I think we should add a generateXPointer function too, since it's trivial to implement once we have implemented generateXPath and the resolver. You just need to serialize the namespace mappings from the resolver following the [http://www.w3.org/TR/xptr-xmlns/ XPointer xmlns() scheme] and use the [http://www.w3.org/TR/xptr-xpointer/ XPointer xpointer() scheme] for the result of generateXPath. -- Peter Van der Beken | ||
It would probably be a good idea to include a addNamespace(namespaceURI, prefix) method to the IDL, to point into the resolver's namespace map. -- Alex Vincent |