From: Steve B. <Ste...@zv...> - 2002-09-29 20:23:52
|
Derek Fountain wrote: > I'm trying to work out the status of CDATA support in text nodes in various > versions of ActiveTcl. I have this little test script: [...snip...] Script looks fine to me. > With ActiveTcl-8.3.4.3 this returns an empty string. If I remove the -parser > option, it returns the CDATA text. Unfortunately, the default parser is too > buggy - I need the tcl parser to make the rest of my script work. > > ActiveTcl-8.4.0.1 doesn't have the -parser option (I thought it used the same > Tcldom package as 8.3.4.3, but must be mistaken), and has other issues in > other places which prevent my script working. > > Basically, I want to stick with ActiveTcl-8.3.4.3, and the tcl parser, and > get the text from CDATA sections. Can I do that? Basically I'd say the version of TclXML and TclDOM that shipped with ActiveTcl 8.3.4.3 were buggy. ActiveTcl 8.4.0.1 would be using more recent versions, which have different bugs (like the lack of a '-parser' option). Please submit bug reports for those problems. It should not be difficult to adjust the packages being loaded in ActiveTcl 8.4.0.1 to use the pure Tcl implementations. Firstly, make sure you have the latest release: v2.3. Secondly, use 'package require tclparser' to load the pure-Tcl parser first and make it the default parser. Failing that, remove the TclXML/TclDOM DLLs to force the pure Tcl packages to be used. HTHs, 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 |