Menu

#2 XPath problem

open
None
5
2002-10-30
2002-08-21
Anonymous
No

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

Discussion

  • Steve Ball

    Steve Ball - 2002-08-21
    • milestone: --> 103114
    • assigned_to: nobody --> balls
     
  • Steve Ball

    Steve Ball - 2002-09-09
    • labels: 105691 -->
    • milestone: 103114 -->
    • assigned_to: balls --> nobody
     
  • Steve Ball

    Steve Ball - 2002-10-30
    • assigned_to: nobody --> balls
     
  • Jean-Francois LARVOIRE

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.