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
]
package ifneeded dommap 1.0
]
package ifneeded sgml 1.9
]
package ifneeded xml::dep 1.0
]
package ifneeded xml::tcl 3.1
]
package ifneeded xmlswitch 3.2
]
package ifneeded xslt::cache 3.2
]
package ifneeded xslt::resources 1.3
]
package ifneeded xslt::utilities 1.2
]
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
Peter Heggie
PeterHeggie@crouse.org