1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-07 10:42:55 +03:00

preparing release 1.0.13 updated and rebuilt the docs fixed a possible

* configure.in libxslt/xsltwin32config.h: preparing release
  1.0.13
* doc/*: updated and rebuilt the docs
* python/libxslt.c: fixed a possible reentrancy problem
Daniel
This commit is contained in:
Daniel Veillard
2002-03-08 16:52:34 +00:00
parent f503baafa1
commit ef2531fb96
28 changed files with 1724 additions and 993 deletions

View File

@@ -82,13 +82,13 @@ or libxslt wrappers or bindings:</p>
<ul>
<li>
<a href="http://mail.gnome.org/archives/xml/2001-March/msg00014.html">Matt
Sergeant</a>
developped <a href="http://axkit.org/download/">XML::LibXML and
XML::LibXSLT</a>, a perl wrapper for libxml2/libxslt as part of the <a href="http://axkit.com/">AxKit XML application server</a>
Sergeant</a> developped <a href="http://axkit.org/download/">XML::LibXML
and XML::LibXSLT</a>, a perl wrapper for libxml2/libxslt as part of the
<a href="http://axkit.com/">AxKit XML application server</a>
</li>
<li>
<a href="mailto:dkuhlman@cutter.rexx.com">Dave Kuhlman</a>
provides and earlier version of the libxml/libxslt <a href="http://www.rexx.com/~dkuhlman">wrappers for Python</a>
<a href="mailto:dkuhlman@cutter.rexx.com">Dave Kuhlman</a> provides and
earlier version of the libxml/libxslt <a href="http://www.rexx.com/~dkuhlman">wrappers for Python</a>
</li>
<li>Petr Kozelka provides <a href="http://sourceforge.net/projects/libxml2-pas">Pascal units to glue
libxml2</a> with Kylix, Delphi and other Pascal compilers</li>
@@ -105,20 +105,18 @@ be maintained as part of the library in the future, though the Python
interface have not yet reached the maturity of the C API.</p>
<p>To install the Python bindings there are 2 options:</p>
<ul>
<li> If you use an RPM based distribution, simply install the
<a href="http://rpmfind.net/linux/rpm2html/search.php?query=libxml2-python">libxml2-python RPM</a> and the
<a href="http://rpmfind.net/linux/rpm2html/search.php?query=libxslt-python">libxslt-python RPM</a>.
</li>
<li> Otherwise use the <a href="ftp://xmlsoft.org/python/">libxml2-python
module distribution</a> corresponding to your installed version of libxml2
and libxslt. Note that to install it you will need both libxml2 and libxslt
installed and run &quot;python setup.py build install&quot; in the module tree.
</li>
<li>If you use an RPM based distribution, simply install the <a href="http://rpmfind.net/linux/rpm2html/search.php?query=libxml2-python">libxml2-python
RPM</a> and the <a href="http://rpmfind.net/linux/rpm2html/search.php?query=libxslt-python">libxslt-python
RPM</a>.</li>
<li>Otherwise use the <a href="ftp://xmlsoft.org/python/">libxml2-python
module distribution</a> corresponding to your installed version of
libxml2 and libxslt. Note that to install it you will need both libxml2
and libxslt installed and run &quot;python setup.py build install&quot; in the
module tree.</li>
</ul>
<p>The distribution
includes a set of examples and regression tests for the python bindings in
the <code>python/tests</code> directory. Here are some excepts from those
tests:</p>
<p>The distribution includes a set of examples and regression tests for the
python bindings in the <code>python/tests</code> directory. Here are some
excepts from those tests:</p>
<h3>basic.py:</h3>
<p>This is a basic test of XSLT interfaces: loading a stylesheet and a
document, transforming the document and saving the result.</p>
@@ -138,28 +136,24 @@ for the operations on XML trees. Let's have a look at the objects manipulated
in that example and how is the processing done:</p>
<ul>
<li>
<code>styledoc</code>
: is a libxml2 document tree. It is obtained by parsing the XML file
&quot;test.xsl&quot; containing the stylesheet.</li>
<code>styledoc</code> : is a libxml2 document tree. It is obtained by
parsing the XML file &quot;test.xsl&quot; containing the stylesheet.</li>
<li>
<code>style</code>
: this is a precompiled stylesheet ready to be used by the following
transformations (note the plural form, multiple transformations can
resuse the same stylesheet).</li>
<code>style</code> : this is a precompiled stylesheet ready to be used
by the following transformations (note the plural form, multiple
transformations can resuse the same stylesheet).</li>
<li>
<code>doc</code>
: this is the document to apply the transformation to. In this case it is
simply generated by parsing it from a file but any other processing is
possible as long as one get a libxml2 Doc. Note that HTML tree are
suitable for XSLT processing in libxslt. This is actually how this page
is generated !</li>
<code>doc</code> : this is the document to apply the transformation to.
In this case it is simply generated by parsing it from a file but any
other processing is possible as long as one get a libxml2 Doc. Note that
HTML tree are suitable for XSLT processing in libxslt. This is actually
how this page is generated !</li>
<li>
<code>result</code>
: this is a document generated by applying the stylesheet to the
document. Note that some of the stylesheet informations may be related to
the serialization of that document and as in this example a specific
saveResultToFilename() method of the stylesheet should be used to save it
to a file (in that case to &quot;foo&quot;).</li>
<code>result</code> : this is a document generated by applying the
stylesheet to the document. Note that some of the stylesheet informations
may be related to the serialization of that document and as in this
example a specific saveResultToFilename() method of the stylesheet should
be used to save it to a file (in that case to &quot;foo&quot;).</li>
</ul>
<p>Also note the need to explicitely deallocate documents with freeDoc()
except for the stylesheet document which is freed when its compiled form is