From: Steve B. <Ste...@zv...> - 2002-09-02 21:46:14
|
Joe English wrote: > The Expat-based implementation (in tcldom/src, formerly known > as TclDOM-Pro) doesn't include XPath support, and probably > never will unless someone else takes the trouble to implement it. > I don't plan to -- IMO implementing XPath is more trouble than > it's worth. I wonder whether the Tcl implementation's XPath code is generalised enough to be used with a TclDOMPro DOM tree? I'd have to check to see if it only uses API calls, rather than peeking directly inside the node data structures. I'm pretty sure the createNode stuff falls into that category. This approach may apply to other features, such as events. > (Personally, I use a homegrown XML query language built on top > of TclDOM; it has most of the power of XPath, but was significantly > easier to implement). Horses for courses... Having invested the time in learning XPath, I like to leverage that investment. XPath is popping up all over the place - XSLT, XML-Query, DOM, etc. I've no doubt that it may be easier to design/implement other query languages (especially now that I've read the XPath v2.0 WD - phew!) but sticking to standards (as much as possible) is important to me. Cheers, Steve Ball -- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |