canmove, Confirmed users
2,056
edits
(adding request for content-identified nodes) |
|||
Line 145: | Line 145: | ||
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 | 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 | ||
I'd like the ability for a caller to tell the generator that it should identify the starting node by the content it contains when calling generateXPath. We could do that by adding a searchFlag called something like IDENTIFY_START_BY_CONTENT which triggers the behavior. | |||
When I say "identify the starting node by the content it contains", I mean use the contains() method or the like to filter nodes with the same tag name. For example, for an XPath expression starting at a DIV node whose content is "foo", the beginning of the XPath expression should be DIV[contains(.,"foo")] or some other XPath construct which identifies the node by the content it contains. -- Myk Melez | |||
== XPath: Content Boundaries == | == XPath: Content Boundaries == |