How can I install tclxml 3.2 without messing up the current Cloverleaf tcl configuration?
I've read a lot about pkgIndex and commands that read it and the Cloverleaf commands that create their own indexes, but I still don't understand how to install tclxml.
I understand "package ifneeded dom 3.0" but I don't understand "package ifneeded dom::tcl 3.0" . What is the significance of the '::tcl' ?
I thought most packages come with a pkgIndex.tcl but this one does not. I've copied the three directories that I thought were important from the entire download - tcldom-tcl, tclxml-tcl and tclxslt - into a single directory under $HCISITE/tclprocs. Running mkpkgindex results in several error messages:
warning: error while sourcing xpath.tcl: can't read "::xml::QName": no such variable
. It creates a pkgIndex.tcl file but when I run a tcl that has a "package require xpath" I get an error
can't find package xpath
. If I remove the package require xpath, it does not get much further:
can't find package xml 3.0
while executing
"package require xml 3.0"
(file "/hci/cis6.0/integrator/chonltst/tclprocs/lib/dom.tcl" line 18)
invoked from within
"source /hci/cis6.0/integrator/chonltst/tclprocs/lib/dom.tcl"
("package ifneeded dom::tcl 3.0" script)
invoked from within
"package require dom::tcl"
(file "/home/hci/scripts/xml_package.tcl" line 7)
This seems strange because the pkgIndex.tcl seems to have it listed:
package ifneeded dom::tcl 3.0 [list source [file join $dir dom.tcl]]
package ifneeded dommap 1.0 [list source [file join $dir dommap.tcl]]
package ifneeded sgml 1.9 [list source [file join $dir sgml-8.1.tcl]]
package ifneeded xml::dep 1.0 [list source [file join $dir xmldep.tcl]]
package ifneeded xml::tcl 3.1 [list source [file join $dir xml__tcl.tcl]]
package ifneeded xmlswitch 3.2 [list source [file join $dir xmlswitch.tcl]]
package ifneeded xslt::cache 3.2 [list source [file join $dir xsltcache.tcl]]
package ifneeded xslt::resources 1.3 [list source [file join $dir resources.tcl]]
package ifneeded xslt::utilities 1.2 [list source [file join $dir utilities.tcl]]
I need to be able to use xpath notation to find certain child xml tags, among repeated child tags, that have certain attribute values.
Is there another way to get xpath or tcldom installed?
Thanks,
Pete