home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activetcltk / ActiveTcl8.3.4.1-8.win32-ix86.exe / ActiveTcl8.3.4.1-win32-ix86 / lib / tcldom2.0 / pkgIndex.tcl < prev   
Encoding:
Text File  |  2001-10-22  |  794 b   |  24 lines

  1. # TclDOM package index - hand crafted
  2. #
  3. # $Id: pkgIndex.tcl.in,v 1.1 2000/12/06 12:08:57 balls Exp $
  4.  
  5. package ifneeded dom::c 2.0 [list load [file join $dir @RELPATH@ libtcldom2.0]]
  6. package ifneeded dom::tcl 2.0 [list source [file join $dir dom.tcl]]
  7. package ifneeded dommap 1.0 [list source [file join $dir dommap.tcl]]
  8. package ifneeded xmlswitch 1.0 [list source [file join $dir xmlswitch.tcl]]
  9.  
  10. namespace eval ::dom {}
  11.  
  12. # Requesting the generic dom package loads the C package 
  13. # if available, otherwise falls back to the Tcl package.
  14. # The application can tell which it got by examining the
  15. # list of packages loaded (and looking for dom::c or dom::tcl).
  16.  
  17. package ifneeded dom 2.0 {
  18.     if {[catch {package require dom::c}]} {
  19.     package require dom::tcl
  20.     }
  21.     package provide dom 2.0
  22. }
  23.  
  24.