+Mon Mar 24 22:30:00 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/pattern.c libxslt/transform.c libxslt/variables.c:
+ Result Value Tree are now generated with a document root node
+ not an element, it's quite cleaner.
+ * configure.in libxslt.spec.in NEWS: But this requires libxml2-2.5.5
+ also prepared for libxslt-1.0.28 release
+ * doc/*: updated and regenerated the docs
+
Mon Mar 24 15:01:07 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/pattern.c libxslt/transform.c libxslt/variables.c:
file
for a really accurate description:
+1.0.28: Mar 24 2003:
+ - fixed node() in patterns semantic.
+ - fixed a memory access problem in format-number()
+ - fixed stack overflow in recursive global variable or params
+ - cleaned up Result Value Tree handling, and fixed a couple of old bugs
+ in the process
+
+
1.0.27: Feb 24 2003:
- bug fixes: spurious xmlns:nsX="" generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs
- - Windows path canonicalization and document cache fix (Igor)
+ - Windows path canonicalization and document cache fix (Igor)
1.0.26: Feb 10 2003:
dnl
LIBXSLT_MAJOR_VERSION=1
LIBXSLT_MINOR_VERSION=0
-LIBXSLT_MICRO_VERSION=27
+LIBXSLT_MICRO_VERSION=28
PACKAGE=libxslt
LIBEXSLT_MAJOR_VERSION=0
LIBEXSLT_MINOR_VERSION=7
-LIBEXSLT_MICRO_VERSION=18
-LIBXML_REQUIRED_VERSION=2.5.2
+LIBEXSLT_MICRO_VERSION=19
+LIBXML_REQUIRED_VERSION=2.5.5
LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION
<ANCHOR id ="XSLTPARSESTYLESHEETPROCESS" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETPROCESS">
<ANCHOR id ="XSLTPARSESTYLESHEETOUTPUT" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETOUTPUT">
<ANCHOR id ="XSLTPARSESTYLESHEETDOC" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETDOC">
+<ANCHOR id ="XSLTPARSESTYLESHEETIMPORTEDDOC" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETIMPORTEDDOC">
<ANCHOR id ="XSLTLOADSTYLESHEETPI" href="libxslt/libxslt-xsltinternals.html#XSLTLOADSTYLESHEETPI">
<ANCHOR id ="XSLTNUMBERFORMAT" href="libxslt/libxslt-xsltinternals.html#XSLTNUMBERFORMAT">
<ANCHOR id ="XSLTFORMATNUMBERCONVERSION" href="libxslt/libxslt-xsltinternals.html#XSLTFORMATNUMBERCONVERSION">
><DIV
CLASS="REFNAMEDIV"
><A
-NAME="AEN6015"
+NAME="AEN6039"
></A
><H2
>Name</H2
><DIV
CLASS="REFSYNOPSISDIV"
><A
-NAME="AEN6018"
+NAME="AEN6042"
></A
><H2
>Synopsis</H2
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN6025"
+NAME="AEN6049"
></A
><H2
>Description</H2
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN6028"
+NAME="AEN6052"
></A
><H2
>Details</H2
><DIV
CLASS="REFSECT2"
><A
-NAME="AEN6030"
+NAME="AEN6054"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN6036"
+NAME="AEN6060"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN6041"
+NAME="AEN6065"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN6047"
+NAME="AEN6071"
></A
><H3
><A
HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
>xsltStylesheetPtr</A
> <A
+HREF="libxslt-xsltinternals.html#XSLTPARSESTYLESHEETIMPORTEDDOC"
+>xsltParseStylesheetImportedDoc</A
+>
+ (<GTKDOCLINK
+HREF="XMLDOCPTR"
+>xmlDocPtr</GTKDOCLINK
+> doc);
+<A
+HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
+>xsltStylesheetPtr</A
+> <A
HREF="libxslt-xsltinternals.html#XSLTLOADSTYLESHEETPI"
>xsltLoadStylesheetPI</A
> (<GTKDOCLINK
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN5396"
+NAME="AEN5399"
></A
><H2
>Description</H2
><DIV
CLASS="REFSECT1"
><A
-NAME="AEN5399"
+NAME="AEN5402"
></A
><H2
>Details</H2
><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5401"
+NAME="AEN5404"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5407"
+NAME="AEN5410"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5413"
+NAME="AEN5416"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5419"
+NAME="AEN5422"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5424"
+NAME="AEN5427"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5430"
+NAME="AEN5433"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5443"
+NAME="AEN5446"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5449"
+NAME="AEN5452"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5462"
+NAME="AEN5465"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5468"
+NAME="AEN5471"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5481"
+NAME="AEN5484"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5487"
+NAME="AEN5490"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5492"
+NAME="AEN5495"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5498"
+NAME="AEN5501"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5503"
+NAME="AEN5506"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5509"
+NAME="AEN5512"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5514"
+NAME="AEN5517"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5519"
+NAME="AEN5522"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5524"
+NAME="AEN5527"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5530"
+NAME="AEN5533"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5535"
+NAME="AEN5538"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5545"
+NAME="AEN5548"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5566"
+NAME="AEN5569"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5574"
+NAME="AEN5577"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5591"
+NAME="AEN5594"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5596"
+NAME="AEN5599"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5604"
+NAME="AEN5607"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5614"
+NAME="AEN5617"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5620"
+NAME="AEN5623"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5625"
+NAME="AEN5628"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5630"
+NAME="AEN5633"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5635"
+NAME="AEN5638"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5640"
+NAME="AEN5643"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5645"
+NAME="AEN5648"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5650"
+NAME="AEN5653"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5655"
+NAME="AEN5658"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5661"
+NAME="AEN5664"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5667"
+NAME="AEN5670"
></A
><H3
><A
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5673"
+NAME="AEN5676"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5680"
+NAME="AEN5683"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5689"
+NAME="AEN5692"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5697"
+NAME="AEN5700"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5710"
+NAME="AEN5713"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5718"
+NAME="AEN5721"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5727"
+NAME="AEN5730"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5734"
+NAME="AEN5737"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5747"
+NAME="AEN5750"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5755"
+NAME="AEN5758"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5764"
+NAME="AEN5767"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5773"
+NAME="AEN5776"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5790"
+NAME="AEN5793"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5799"
+NAME="AEN5802"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5816"
+NAME="AEN5819"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5824"
+NAME="AEN5827"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5837"
+NAME="AEN5840"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5845"
+NAME="AEN5848"
+></A
+><P
+></P
+><TABLE
+BORDER="0"
+WIDTH="100%"
+BGCOLOR="#FFD0D0"
+CELLSPACING="0"
+CELLPADDING="4"
+CLASS="CALSTABLE"
+><TBODY
+><TR
+><TD
+WIDTH="20%"
+ALIGN="RIGHT"
+VALIGN="TOP"
+><TT
+CLASS="PARAMETER"
+><I
+>doc</I
+></TT
+> :</TD
+><TD
+WIDTH="80%"
+ALIGN="LEFT"
+VALIGN="TOP"
+> and xmlDoc parsed XML</TD
+></TR
+><TR
+><TD
+WIDTH="20%"
+ALIGN="RIGHT"
+VALIGN="TOP"
+><SPAN
+CLASS="emphasis"
+><I
+CLASS="EMPHASIS"
+>Returns</I
+></SPAN
+> :</TD
+><TD
+WIDTH="80%"
+ALIGN="LEFT"
+VALIGN="TOP"
+>a new XSLT stylesheet structure.</TD
+></TR
+></TBODY
+></TABLE
+><P
+></P
+></DIV
+></DIV
+><HR><DIV
+CLASS="REFSECT2"
+><A
+NAME="AEN5861"
+></A
+><H3
+><A
+NAME="XSLTPARSESTYLESHEETIMPORTEDDOC"
+></A
+>xsltParseStylesheetImportedDoc ()</H3
+><TABLE
+BORDER="0"
+BGCOLOR="#D6E8FF"
+WIDTH="100%"
+CELLPADDING="6"
+><TR
+><TD
+><PRE
+CLASS="PROGRAMLISTING"
+><A
+HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
+>xsltStylesheetPtr</A
+> xsltParseStylesheetImportedDoc
+ (<GTKDOCLINK
+HREF="XMLDOCPTR"
+>xmlDocPtr</GTKDOCLINK
+> doc);</PRE
+></TD
+></TR
+></TABLE
+><P
+>parse an XSLT stylesheet building the associated structures
+except the processing not needed for imported documents.</P
+><P
+></P
+><DIV
+CLASS="INFORMALTABLE"
+><A
+NAME="AEN5869"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5858"
+NAME="AEN5882"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5867"
+NAME="AEN5891"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5880"
+NAME="AEN5904"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5889"
+NAME="AEN5913"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5906"
+NAME="AEN5930"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5924"
+NAME="AEN5948"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5949"
+NAME="AEN5973"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5957"
+NAME="AEN5981"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5970"
+NAME="AEN5994"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5977"
+NAME="AEN6001"
></A
><P
></P
><HR><DIV
CLASS="REFSECT2"
><A
-NAME="AEN5990"
+NAME="AEN6014"
></A
><H3
><A
><DIV
CLASS="INFORMALTABLE"
><A
-NAME="AEN5997"
+NAME="AEN6021"
></A
><P
></P
<MACRO>
<NAME>LIBXSLT_DOTTED_VERSION</NAME>
-#define LIBXSLT_DOTTED_VERSION "1.0.23"
+#define LIBXSLT_DOTTED_VERSION "1.0.27"
</MACRO>
<MACRO>
<NAME>LIBXSLT_VERSION</NAME>
-#define LIBXSLT_VERSION 10023
+#define LIBXSLT_VERSION 10027
</MACRO>
<MACRO>
<NAME>LIBXSLT_VERSION_STRING</NAME>
-#define LIBXSLT_VERSION_STRING "10023"
+#define LIBXSLT_VERSION_STRING "10027"
</MACRO>
<MACRO>
<NAME>WITH_XSLT_DEBUG</NAME>
#define XSLT_NEED_TRIO
</MACRO>
<MACRO>
+<NAME>XSLT_NEED_TRIO</NAME>
+#define XSLT_NEED_TRIO
+</MACRO>
+<MACRO>
<NAME>WITH_DEBUGGER</NAME>
#define WITH_DEBUGGER
</MACRO>
</FUNCTION>
<MACRO>
<NAME>LIBXSLT_DOTTED_VERSION</NAME>
-#define LIBXSLT_DOTTED_VERSION "1.0.23"
+#define LIBXSLT_DOTTED_VERSION "1.0.27"
</MACRO>
<MACRO>
<NAME>LIBXSLT_VERSION</NAME>
-#define LIBXSLT_VERSION 10023
+#define LIBXSLT_VERSION 10027
</MACRO>
<MACRO>
<NAME>LIBXSLT_VERSION_STRING</NAME>
-#define LIBXSLT_VERSION_STRING "10023"
+#define LIBXSLT_VERSION_STRING "10027"
</MACRO>
<MACRO>
<NAME>WITH_XSLT_DEBUG</NAME>
xmlDocPtr doc
</FUNCTION>
<FUNCTION>
+<NAME>xsltParseStylesheetImportedDoc</NAME>
+<RETURNS>xsltStylesheetPtr </RETURNS>
+xmlDocPtr doc
+</FUNCTION>
+<FUNCTION>
<NAME>xsltLoadStylesheetPI</NAME>
<RETURNS>xsltStylesheetPtr </RETURNS>
xmlDocPtr doc
xsltParseStylesheetProcess
xsltParseStylesheetOutput
xsltParseStylesheetDoc
+xsltParseStylesheetImportedDoc
xsltLoadStylesheetPI
xsltNumberFormat
xsltFormatNumberConversion
<td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd">
<h3>CVS only : check the <a href="http://cvs.gnome.org/lxr/source/libxslt/ChangeLog">Changelog</a> file
for a really accurate description</h3>
+<h3>1.0.28: Mar 24 2003</h3>
+<ul>
+<li>fixed node() in patterns semantic.</li>
+ <li>fixed a memory access problem in format-number()</li>
+ <li>fixed stack overflow in recursive global variable or params</li>
+ <li>cleaned up Result Value Tree handling, and fixed a couple of old bugs
+ in the process</li>
+</ul>
<h3>1.0.27: Feb 24 2003</h3>
<ul>
<li>bug fixes: spurious xmlns:nsX="" generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs</li>
- <li>Windows path canonicalization and document cache fix (Igor) </li>
+ <li>Windows path canonicalization and document cache fix (Igor)</li>
</ul>
<h3>1.0.26: Feb 10 2003</h3>
<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>, Perl wrappers for libxml2/libxslt as part of the
- <a href="http://axkit.com/">AxKit XML application server</a>
+ and XML::LibXSLT</a>, Perl wrappers 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
for PHP</a>.</li>
<li>
<a href="http://savannah.gnu.org/projects/classpathx/">LibxmlJ</a> is
- an effort to create a 100% JAXP-compatible Java wrapper for
- libxml2 and libxslt as part of GNU ClasspathX project.
-</li>
+ an effort to create a 100% JAXP-compatible Java wrapper for libxml2 and
+ libxslt as part of GNU ClasspathX project.</li>
</ul>
<p>The libxslt Python module depends on the <a href="http://xmlsoft.org/python.html">libxml2 Python</a> module.</p>
<p>The distribution includes a set of Python bindings, which are garanteed to
href="http://cvs.gnome.org/lxr/source/libxslt/ChangeLog">Changelog</a> file
for a really accurate description</h3>
+<h3>1.0.28: Mar 24 2003</h3>
+<ul>
+ <li>fixed node() in patterns semantic.</li>
+ <li>fixed a memory access problem in format-number()</li>
+ <li>fixed stack overflow in recursive global variable or params</li>
+ <li>cleaned up Result Value Tree handling, and fixed a couple of old bugs
+ in the process</li>
+</ul>
+
<h3>1.0.27: Feb 24 2003</h3>
<ul>
<li>bug fixes: spurious xmlns:nsX="" generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs</li>
- <li>Windows path canonicalization and document cache fix (Igor) </li>
+ <li>Windows path canonicalization and document cache fix (Igor)</li>
</ul>
<h3>1.0.26: Feb 10 2003</h3>
<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>, Perl wrappers for libxml2/libxslt as part of the
- <a href="http://axkit.com/">AxKit XML application server</a></li>
+ and XML::LibXSLT</a>, Perl wrappers 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></li>
using <a href="http://siasl.dyndns.org/projects/projects.html">libxslt
for PHP</a>.</li>
<li><a href="http://savannah.gnu.org/projects/classpathx/">LibxmlJ</a> is
- an effort to create a 100% JAXP-compatible Java wrapper for
- libxml2 and libxslt as part of GNU ClasspathX project.
+ an effort to create a 100% JAXP-compatible Java wrapper for libxml2 and
+ libxslt as part of GNU ClasspathX project.</li>
</ul>
<p>The libxslt Python module depends on the <a
Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://xmlsoft.org/XSLT/
-Requires: libxml2 >= 2.5.4
-BuildRequires: libxml2-devel >= 2.5.4
+Requires: libxml2 >= 2.5.5
+BuildRequires: libxml2-devel >= 2.5.5
BuildRequires: python python-devel
BuildRequires: libxml2-python
Prefix: %{_prefix}
%description
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
-mechanism. To use it you need to have a version of libxml2 >= 2.5.4
+mechanism. To use it you need to have a version of libxml2 >= 2.5.5
installed. The xsltproc command is a command line interface to the XSLT engine
%package devel
Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
Group: Development/Libraries
Requires: libxslt = %{version}
-Requires: libxml2-devel >= 2.5.4
+Requires: libxml2-devel >= 2.5.5
%description devel
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
-mechanism. To use it you need to have a version of libxml2 >= 2.5.4
+mechanism. To use it you need to have a version of libxml2 >= 2.5.5
installed.
%package python
Summary: Python bindings for the libxslt library
Group: Development/Libraries
Requires: libxslt = %{version}
-Requires: libxml2 >= 2.5.4
+Requires: libxml2 >= 2.5.5
Requires: python
%description python
if ((parent == NULL) || (node->doc == NULL))
nocache = 1;
else {
- while (parent->parent != NULL)
- parent = parent->parent;
- if (((parent->type != XML_DOCUMENT_NODE) &&
- (parent->type != XML_HTML_DOCUMENT_NODE)) ||
- (parent != (xmlNodePtr) node->doc))
+ if ((doc->name != NULL) &&
+ (doc->name[0] == ' ') &&
+ (xmlStrEqual(BAD_CAST doc->name,
+ BAD_CAST " fake node libxslt")))
nocache = 1;
}
if (nocache == 0) {
(list->nodeTab[i]->doc->doc)!=ctxt->xpathCtxt->doc) {
/* The nodeset is from another document, so must change */
ctxt->xpathCtxt->doc=list->nodeTab[i]->doc->doc;
- if (list->nodeTab[i]->doc->type != XML_ELEMENT_NODE) {
- if ((ctxt->document = xsltFindDocument(ctxt,
- list->nodeTab[i]->doc->doc))==NULL) {
- xsltTransformError(ctxt, NULL, inst,
- "xsl:apply-templates : can't find doc\n");
- goto error;
- }
+ if (list->nodeTab[i]->doc->name != NULL) {
+ ctxt->document = xsltFindDocument(ctxt,
+ list->nodeTab[i]->doc->doc);
ctxt->xpathCtxt->node = list->nodeTab[i];
#ifdef WITH_XSLT_DEBUG_PROCESS
- xsltGenericDebug(xsltGenericDebugContext,
+ if (ctxt->document != NULL) {
+ xsltGenericDebug(xsltGenericDebugContext,
"xsltApplyTemplates: Changing document - context doc %s, xpathdoc %s\n",
ctxt->document->doc->URL, ctxt->xpathCtxt->doc->URL);
-#endif
- } else {
- ctxt->xpathCtxt->node = list->nodeTab[i];
- ctxt->document = NULL;
-#ifdef WITH_XSLT_DEBUG_PROCESS
- xsltGenericDebug(xsltGenericDebugContext,
+ } else {
+ xsltGenericDebug(xsltGenericDebugContext,
"xsltApplyTemplates: Changing document - Return tree fragment\n");
+ }
#endif
}
}
/*
* This is a result tree fragment.
*/
- xmlNodePtr container;
+ xmlDocPtr container;
xmlNodePtr oldInsert;
xmlDocPtr oldoutput;
- container = xmlNewDocNode(NULL, NULL,
- (const xmlChar *) " fake node libxslt", NULL);
+ container = xmlNewDoc(NULL);
if (container == NULL)
return(NULL);
- container->doc = (xmlDocPtr) container;
+ container->name = xmlStrdup(BAD_CAST " fake node libxslt");
+ container->doc = container;
container->parent = NULL;
oldoutput = ctxt->output;
- ctxt->output = (xmlDocPtr) container;
+ ctxt->output = container;
oldInsert = ctxt->insert;
- ctxt->insert = container;
+ ctxt->insert = (xmlNodePtr) container;
xsltApplyOneTemplate(ctxt, ctxt->node, elem->tree, NULL, NULL);
ctxt->insert = oldInsert;
ctxt->output = oldoutput;
/*
* This is a result tree fragment.
*/
- xmlNodePtr container;
+ xmlDocPtr container;
xmlNodePtr oldInsert;
xmlDocPtr oldoutput;
- container = xmlNewDocNode(NULL , NULL,
- (const xmlChar *) " fake node libxslt", NULL);
- if (container == NULL) {
- elem->name = name;
+ container = xmlNewDoc(NULL);
+ if (container == NULL)
return(NULL);
- }
- container->doc = (xmlDocPtr) container;
+ container->name = xmlStrdup(BAD_CAST " fake node libxslt");
+ container->doc = container;
container->parent = NULL;
oldoutput = ctxt->output;
- ctxt->output = (xmlDocPtr) container;
+ ctxt->output = container;
oldInsert = ctxt->insert;
- ctxt->insert = container;
+ ctxt->insert = (xmlNodePtr) container;
xsltApplyOneTemplate(ctxt, ctxt->node, elem->tree, NULL, NULL);
ctxt->insert = oldInsert;
ctxt->output = oldoutput;