• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..14-Nov-201311

aclocal.m4H A D26-Sep-2002147

ChangeLogH A D09-Mar-200319.7 KiB

config/H14-Nov-20136

configureH A D11-Dec-2012316.5 KiB

configure.inH A D11-Dec-20128.7 KiB

docs/H14-Nov-201310

examples/H14-Nov-20138

install.dataH A D09-Mar-20032.2 KiB

install.tclH A D29-Oct-200260 KiB

library/H14-Nov-20138

LICENSEH A D20-May-2002508

macosx/H09-Mar-20033

Makefile.inH A D11-Dec-201218.2 KiB

MANIFESTH A D15-Aug-2002433

READMEH A D09-Mar-20034.1 KiB

README.htmlH A D09-Mar-20038.2 KiB

RELNOTESH A D09-Mar-20032.9 KiB

src/H14-Nov-201316

src-libxml2/H14-Nov-201313

tclconfig/H14-Nov-20136

tcldom.cH A D09-Mar-200319.5 KiB

tcldom.declsH A D31-Oct-2002990

tcldom.hH A D31-Oct-20023.8 KiB

TcldomConfig.sh.inH A D30-Oct-20022.1 KiB

tcldomDecls.hH A D31-Oct-20021.3 KiB

tcldomStubInit.cH A D31-Oct-2002544

tcldomStubLib.cH A D31-Oct-20021.8 KiB

tests/H14-Nov-201318

tools/H14-Nov-20133

README

1
2	DOM Binding For Tcl
3
4	TclDOM Version 2.6
5
6Steve Ball, Zveno Pty Ltd
7
8This package provides a DOM binding for Tcl.  It provides the following
9implementations:
10
11    *     A Tcl-only implementation (slow, but no compilation required),
12
13    *     A C-based implementation based on TclDOMPro (fast),
14
15    *     A wrapper for the Gnome libxml2 library [http://xmlsoft.org/] (also fast
16    and compatiable with TclXSLT/libxslt
17    [http://tclxml.sourceforge.net/tclxslt.html]).
18
19
20See the TclXML website [http://tclxml.sourceforge.net/] for more information on
21XML support for Tcl.
22
23Contact Steve Ball [mailto:Steve.Ball@zveno.com] for information about this
24release.
25
26
27
28Installation
29============
30
31How you install the package depends on which components you require.
32
33
34
35Dependencies
36------------
37
38All in cases, the following packages must be installed before attempting to
39install TclDOM.
40
41Tcllib
42    http://dev.scriptics.com/software/tcllib/
43    [http://dev.scriptics.com/software/tcllib/]
44
45    In order for the Tcl-only parser to resolve external entities, the tcllib
46    package must be installed.
47
48    Be sure to get a version which includes the uri package.  Version 1.2 or better
49    is recommended.
50
51        *         GZip'd tarball [ftp://prdownloads.sf.net/tcllib/tcllib-1.3.tar.gz]
52
53        *         ZIP file [ftp://prdownloads.sf.net/tcllib/tcllib-1.3.zip]
54
55
56    The latest CVS snapshot may be found at the SourceForge project page
57    [http://sourceforge.net/projects/tcllib].
58
59
60
61TclXML
62    First install TclXML version 2.6 [http://tclxml.sourceforge.net/tclxml.html].
63
64    You must install the same numbered version as this package, ie. 2.6.
65
66
67
68
69
70Pure-Tcl Installation (no compilation required)
71-----------------------------------------------
72
73The install.tcl script will install the pure-Tcl DOM implementation.  Run it
74using wish, eg.
75
76    wish install.tcl
77
78    If Tcl/Tk has been configured correctly on your system, you should be able to
79    simply double-click the script
80
81If the pure-Tcl parser is good enough for you, then read no further.
82
83
84
85Compiled Installation
86---------------------
87
88If you need the speed of a compiled DOM implementation, then you have three
89options:
90
91    *     TclDOM/C (a.k.a. TclDOMPro)
92
93    *     TclDOM/libxml2
94
95    *     tDOM (different API to TclDOM, but similar functionality)
96
97
98
99
100Compiling TclDOM/libxml2
101------------------------
102
103
104
105Additional Dependencies
106-----------------------
107
108In order to build TclDOM/libxml2, first install the libxml2 library itself.
109 Download libxml2 from the libxml2 website [http://xmlsoft.org/].  There are
110binary distributions available for some platforms.
111
112
113
114Unix/Linux
115----------
116
117You must have Tcl/Tk version 8.2 or better installed on your system.  Tcl/Tk
1188.3 or better is recommended.
119
120Unpack the TclDOM distribution and cd into the tcldom-2.6 directory.
121
122Run the configure script, with the --prefix, --exec_prefix and --enable-threads
123switches (the latter only if Tcl has been built with threads enabled).
124
125For example, on my system I have Tcl 8.4 installed in /usr/local/tcl8.4 so I
126would use the command:
127
128    ./configure --prefix=/usr/local/tcl8.4 --exec-prefix=/usr/local/tcl8.4 --enable-threads
129
130    make
131
132    make install
133
134You may have to do this as root
135
136    cd src-libxml2
137
138Run the configure script, with the same values as above for the --prefix,
139--exec_prefix and --enable-threads switches.
140
141    If libxml2 was installed in a non-standard location you might have to add the
142    --with-xml2-include and --with-xml-lib switches.
143
144    On Windows the iconv library is required too. See
145    www.fh-frankfurt.de/~igor/projects/libxml/
146    [http://www.fh-frankfurt.de/~igor/projects/libxml/] for either precompiled
147    binaries, or a link to the sources.  The relevant options are
148    --with-iconv-include and --with-iconv-lib.
149
150For example, on my Linux system I have Tcl 8.4 installed in /usr/local/tcl8.4
151and libxml2 installed in /usr/local so I would use the command:
152
153    ./configure --prefix=/usr/local/tcl8.4 --exec-prefix=/usr/local/tcl8.4 --enable-threads --with-xml2-include=/usr/local/include --with-xml2-lib=/usr/local/lib
154
155    make
156
157    make install
158
159You may have to do this as root
160
161
162
163Usage
164=====
165
166See reference documentation.
167
168
169

README.html

1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>DOM Binding For Tcl</title><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="id222773"></a>DOM Binding For Tcl</h1></div><div><h3 class="subtitle"><i>TclDOM</i></h3></div><div><div class="author"><h3 class="author"><span class="firstname">Steve</span> <span class="surname">Ball</span></h3><div class="affiliation"><span class="orgname">Zveno Pty Ltd<br></span><div class="address"><p><br>
2	��<span class="otheraddr"><br>
3	����<a href="http://www.zveno.com/" target="_top">www.zveno.com</a><br>
4	��</span><br>
5	</p></div></div></div></div><div><p class="releaseinfo">$Id: README.xml,v 1.1 2003/03/09 11:14:56 balls Exp $</p></div><div><div class="revhistory"><table border="1" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="2"><b>Revision History</b></th></tr><tr><td align="left">Revision 2.6</td><td align="left"></td></tr></table></div></div></div><div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="#id268901">Installation</a></dt><dd><dl><dt><a href="#id268915">Dependencies</a></dt><dt><a href="#id269057">Pure-Tcl Installation</a></dt><dt><a href="#id269104">Compiled Installation</a></dt></dl></dd><dt><a href="#id269429">Usage</a></dt></dl></div><p>This package provides a DOM binding for Tcl.  It provides the following implementations:</p><div class="itemizedlist"><ul type="disc"><li><p>A Tcl-only implementation (slow, but no compilation required),</p></li><li><p>A C-based implementation based on TclDOMPro (fast),</p></li><li><p>A wrapper for the <a href="http://xmlsoft.org/" target="_top">Gnome libxml2 library</a> (also fast and compatiable with <a href="http://tclxml.sourceforge.net/tclxslt.html" target="_top">TclXSLT/libxslt</a>).</p></li></ul></div><p>See <a href="http://tclxml.sourceforge.net/" target="_top">the TclXML website</a> for more information on XML support for Tcl.</p><p>Contact <a href="mailto:Steve.Ball@zveno.com" target="_top">Steve Ball</a> for information about this release.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id268901"></a>Installation</h2></div></div><div></div></div><p>How you install the package depends on which components you require.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id268915"></a>Dependencies</h3></div></div><div></div></div><p>All in cases, the following packages must be installed before attempting to install TclDOM.</p><div class="variablelist"><dl><dt><span class="term">Tcllib</span></dt><dd><p><a href="http://dev.scriptics.com/software/tcllib/" target="_top">http://dev.scriptics.com/software/tcllib/</a></p><p>In order for the Tcl-only parser to resolve external entities, the tcllib package must be installed.</p><p>Be sure to get a version which includes the <tt class="tclpackage">uri</tt> package.  Version 1.2 or better is recommended.</p><div class="itemizedlist"><ul type="disc"><li><p><a href="ftp://prdownloads.sf.net/tcllib/tcllib-1.3.tar.gz" target="_top">GZip'd tarball</a></p></li><li><p><a href="ftp://prdownloads.sf.net/tcllib/tcllib-1.3.zip" target="_top">ZIP file</a></p></li></ul></div><p>The latest CVS snapshot may be found at <a href="http://sourceforge.net/projects/tcllib" target="_top">the SourceForge project page</a>.</p></dd><dt><span class="term">TclXML</span></dt><dd><p>First install <a href="http://tclxml.sourceforge.net/tclxml.html" target="_top">TclXML version 2.6</a>.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3>You must install the same numbered version as this package, ie. 2.6.</div></dd></dl></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id269057"></a>Pure-Tcl Installation</h3></div><div><h4 class="title">no compilation required</h4></div></div><div></div></div><p>The <tt class="filename">install.tcl</tt> script will install the pure-Tcl DOM implementation.  Run it using <span class="application">wish</span>, eg.</p><pre class="programlisting">wish install.tcl</pre><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3>If Tcl/Tk has been configured correctly on your system, you should be able to simply double-click the script</div><p>If the pure-Tcl parser is good enough for you, then read no further.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id269104"></a>Compiled Installation</h3></div></div><div></div></div><p>If you need the speed of a compiled DOM implementation, then you have three options:</p><div class="itemizedlist"><ul type="disc"><li><p>TclDOM/C (a.k.a. TclDOMPro)</p></li><li><p>TclDOM/libxml2</p></li><li><p>tDOM (different API to TclDOM, but similar functionality)</p></li></ul></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id269153"></a>Compiling TclDOM/libxml2</h4></div></div><div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id269161"></a>Additional Dependencies</h5></div></div><div></div></div><p>In order to build TclDOM/libxml2, first install the libxml2 library itself.  Download libxml2 from <a href="http://xmlsoft.org/" target="_top">the libxml2 website</a>.  There are binary distributions available for some platforms.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id269186"></a>Unix/Linux</h5></div></div><div></div></div><p>You must have Tcl/Tk version 8.2 or better installed on your system.  Tcl/Tk 8.3 or better is recommended.</p><div class="orderedlist"><ol type="1"><li><p>Unpack the TclDOM distribution and <b class="command">cd</b> into the <tt class="filename">tcldom-2.6</tt> directory.</p></li><li><p>Run the <tt class="filename">configure</tt> script, with the  [--prefix],  [--exec_prefix] and  [--enable-threads] switches (the latter only if Tcl has been built with threads enabled).</p><p>For example, on my system I have Tcl 8.4 installed in <tt class="filename">/usr/local/tcl8.4</tt> so I would use the command:</p><pre class="programlisting">/configure --prefix=/usr/local/tcl8.4 --exec-prefix=/usr/local/tcl8.4 --enable-threads</pre></li><li><pre class="programlisting">make</pre></li><li><pre class="programlisting">make install</pre><p>You may have to do this as root</p></li><li><pre class="programlisting">cd src-libxml2</pre></li><li><p>Run the <tt class="filename">configure</tt> script, with the same values as above for the  [--prefix],  [--exec_prefix] and  [--enable-threads] switches.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3>If libxml2 was installed in a non-standard location you might have to add the  [--with-xml2-include] and  [--with-xml-lib] switches.</div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3>On Windows the iconv library is required too. See <a href="http://www.fh-frankfurt.de/~igor/projects/libxml/" target="_top">www.fh-frankfurt.de/~igor/projects/libxml/</a> for either precompiled binaries, or a link to the sources.  The relevant options are  [--with-iconv-include] and  [--with-iconv-lib].</div><p>For example, on my Linux system I have Tcl 8.4 installed in <tt class="filename">/usr/local/tcl8.4</tt> and libxml2 installed in <tt class="filename">/usr/local</tt> so I would use the command:</p><pre class="programlisting">/configure --prefix=/usr/local/tcl8.4 --exec-prefix=/usr/local/tcl8.4 --enable-threads --with-xml2-include=/usr/local/include --with-xml2-lib=/usr/local/lib</pre></li><li><pre class="programlisting">make</pre></li><li><pre class="programlisting">make install</pre><p>You may have to do this as root</p></li></ol></div></div></div></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id269429"></a>Usage</h2></div></div><div></div></div><p>See reference documentation.</p></div></div></body></html>
6