Hi,
I am tried to use XPath expression in TclDom.
I tried this expression //*[string(.)='some text']
It gives me error saying the function not yet
implemented.
I then tried //*[ . = 'some text']
It also gives message that axis "self" is not supproted.
Please look into the matter.
Thanks
Yogesh Khurana
IBM Global Services India
Logged In: YES
user_id=617204
Hello,
I've had similar problems last week, and began toying with
the XPath support in the TclDOM pure Tcl version.
Based on /tclxml/tcldom/library/dom.tcl version 1.23,
I've added support for a few new XPath features:
o Node selection by index. Ex: //name[2]
o Node selection by type. Ex: //name[text()]
o Selection of last node. Ex: //name[last()]
o The parent axis. Ex: ../@price
o Comparisons on attributes. Ex: //name[@price<100]
(Still a long way from full XPath compliance, but these I
couldn't live without:-)
I'd like to contribute it to the project.
How can this be done?
Jean-François Larvoire
HP France