1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-05 23:35:48 +03:00

Result Value Tree are now generated with a document root node not an

* 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
Daniel
This commit is contained in:
Daniel Veillard
2003-03-24 21:38:13 +00:00
parent 145c37ba02
commit 26cfddfe78
15 changed files with 275 additions and 139 deletions

View File

@@ -1,3 +1,12 @@
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> Mon Mar 24 15:01:07 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/pattern.c libxslt/transform.c libxslt/variables.c: * libxslt/pattern.c libxslt/transform.c libxslt/variables.c:

10
NEWS
View File

@@ -11,10 +11,18 @@ http://cvs.gnome.org/lxr/source/libxslt/ChangeLog
file file
for a really accurate description: 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: 1.0.27: Feb 24 2003:
- bug fixes: spurious xmlns:nsX="" generation, serialization bug (in - bug fixes: spurious xmlns:nsX="" generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs 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: 1.0.26: Feb 10 2003:

View File

@@ -6,12 +6,12 @@ dnl libexslt is an extension
dnl dnl
LIBXSLT_MAJOR_VERSION=1 LIBXSLT_MAJOR_VERSION=1
LIBXSLT_MINOR_VERSION=0 LIBXSLT_MINOR_VERSION=0
LIBXSLT_MICRO_VERSION=27 LIBXSLT_MICRO_VERSION=28
PACKAGE=libxslt PACKAGE=libxslt
LIBEXSLT_MAJOR_VERSION=0 LIBEXSLT_MAJOR_VERSION=0
LIBEXSLT_MINOR_VERSION=7 LIBEXSLT_MINOR_VERSION=7
LIBEXSLT_MICRO_VERSION=18 LIBEXSLT_MICRO_VERSION=19
LIBXML_REQUIRED_VERSION=2.5.2 LIBXML_REQUIRED_VERSION=2.5.5
LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION

View File

@@ -232,6 +232,7 @@
<ANCHOR id ="XSLTPARSESTYLESHEETPROCESS" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETPROCESS"> <ANCHOR id ="XSLTPARSESTYLESHEETPROCESS" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETPROCESS">
<ANCHOR id ="XSLTPARSESTYLESHEETOUTPUT" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETOUTPUT"> <ANCHOR id ="XSLTPARSESTYLESHEETOUTPUT" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETOUTPUT">
<ANCHOR id ="XSLTPARSESTYLESHEETDOC" href="libxslt/libxslt-xsltinternals.html#XSLTPARSESTYLESHEETDOC"> <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 ="XSLTLOADSTYLESHEETPI" href="libxslt/libxslt-xsltinternals.html#XSLTLOADSTYLESHEETPI">
<ANCHOR id ="XSLTNUMBERFORMAT" href="libxslt/libxslt-xsltinternals.html#XSLTNUMBERFORMAT"> <ANCHOR id ="XSLTNUMBERFORMAT" href="libxslt/libxslt-xsltinternals.html#XSLTNUMBERFORMAT">
<ANCHOR id ="XSLTFORMATNUMBERCONVERSION" href="libxslt/libxslt-xsltinternals.html#XSLTFORMATNUMBERCONVERSION"> <ANCHOR id ="XSLTFORMATNUMBERCONVERSION" href="libxslt/libxslt-xsltinternals.html#XSLTFORMATNUMBERCONVERSION">

View File

@@ -111,7 +111,7 @@ NAME="LIBXSLT-NUMBERSINTERNALS"
><DIV ><DIV
CLASS="REFNAMEDIV" CLASS="REFNAMEDIV"
><A ><A
NAME="AEN6015" NAME="AEN6039"
></A ></A
><H2 ><H2
>Name</H2 >Name</H2
@@ -119,7 +119,7 @@ NAME="AEN6015"
><DIV ><DIV
CLASS="REFSYNOPSISDIV" CLASS="REFSYNOPSISDIV"
><A ><A
NAME="AEN6018" NAME="AEN6042"
></A ></A
><H2 ><H2
>Synopsis</H2 >Synopsis</H2
@@ -157,7 +157,7 @@ HREF="libxslt-numbersinternals.html#XSLTFORMATNUMBERINFOPTR"
><DIV ><DIV
CLASS="REFSECT1" CLASS="REFSECT1"
><A ><A
NAME="AEN6025" NAME="AEN6049"
></A ></A
><H2 ><H2
>Description</H2 >Description</H2
@@ -167,14 +167,14 @@ NAME="AEN6025"
><DIV ><DIV
CLASS="REFSECT1" CLASS="REFSECT1"
><A ><A
NAME="AEN6028" NAME="AEN6052"
></A ></A
><H2 ><H2
>Details</H2 >Details</H2
><DIV ><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN6030" NAME="AEN6054"
></A ></A
><H3 ><H3
><A ><A
@@ -214,7 +214,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN6036" NAME="AEN6060"
></A ></A
><H3 ><H3
><A ><A
@@ -240,7 +240,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN6041" NAME="AEN6065"
></A ></A
><H3 ><H3
><A ><A
@@ -278,7 +278,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN6047" NAME="AEN6071"
></A ></A
><H3 ><H3
><A ><A

View File

@@ -393,6 +393,17 @@ HREF="XMLDOCPTR"
HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR" HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
>xsltStylesheetPtr</A >xsltStylesheetPtr</A
> <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" HREF="libxslt-xsltinternals.html#XSLTLOADSTYLESHEETPI"
>xsltLoadStylesheetPI</A >xsltLoadStylesheetPI</A
> (<GTKDOCLINK > (<GTKDOCLINK
@@ -468,7 +479,7 @@ HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
><DIV ><DIV
CLASS="REFSECT1" CLASS="REFSECT1"
><A ><A
NAME="AEN5396" NAME="AEN5399"
></A ></A
><H2 ><H2
>Description</H2 >Description</H2
@@ -478,14 +489,14 @@ NAME="AEN5396"
><DIV ><DIV
CLASS="REFSECT1" CLASS="REFSECT1"
><A ><A
NAME="AEN5399" NAME="AEN5402"
></A ></A
><H2 ><H2
>Details</H2 >Details</H2
><DIV ><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5401" NAME="AEN5404"
></A ></A
><H3 ><H3
><A ><A
@@ -513,7 +524,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5407" NAME="AEN5410"
></A ></A
><H3 ><H3
><A ><A
@@ -541,7 +552,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5413" NAME="AEN5416"
></A ></A
><H3 ><H3
><A ><A
@@ -573,7 +584,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5419" NAME="AEN5422"
></A ></A
><H3 ><H3
><A ><A
@@ -599,7 +610,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5424" NAME="AEN5427"
></A ></A
><H3 ><H3
><A ><A
@@ -626,7 +637,7 @@ CLASS="PROGRAMLISTING"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5430" NAME="AEN5433"
></A ></A
><P ><P
></P ></P
@@ -681,7 +692,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5443" NAME="AEN5446"
></A ></A
><H3 ><H3
><A ><A
@@ -708,7 +719,7 @@ CLASS="PROGRAMLISTING"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5449" NAME="AEN5452"
></A ></A
><P ><P
></P ></P
@@ -763,7 +774,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5462" NAME="AEN5465"
></A ></A
><H3 ><H3
><A ><A
@@ -790,7 +801,7 @@ CLASS="PROGRAMLISTING"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5468" NAME="AEN5471"
></A ></A
><P ><P
></P ></P
@@ -845,7 +856,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5481" NAME="AEN5484"
></A ></A
><H3 ><H3
><A ><A
@@ -891,7 +902,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5487" NAME="AEN5490"
></A ></A
><H3 ><H3
><A ><A
@@ -917,7 +928,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5492" NAME="AEN5495"
></A ></A
><H3 ><H3
><A ><A
@@ -961,7 +972,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5498" NAME="AEN5501"
></A ></A
><H3 ><H3
><A ><A
@@ -987,7 +998,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5503" NAME="AEN5506"
></A ></A
><H3 ><H3
><A ><A
@@ -1020,7 +1031,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5509" NAME="AEN5512"
></A ></A
><H3 ><H3
><A ><A
@@ -1046,7 +1057,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5514" NAME="AEN5517"
></A ></A
><H3 ><H3
><A ><A
@@ -1140,7 +1151,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5519" NAME="AEN5522"
></A ></A
><H3 ><H3
><A ><A
@@ -1166,7 +1177,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5524" NAME="AEN5527"
></A ></A
><H3 ><H3
><A ><A
@@ -1203,7 +1214,7 @@ designed to be extended by extension implementors.</P
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5530" NAME="AEN5533"
></A ></A
><H3 ><H3
><A ><A
@@ -1229,7 +1240,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5535" NAME="AEN5538"
></A ></A
><H3 ><H3
><A ><A
@@ -1272,7 +1283,7 @@ stylesheet language like xsl:if or xsl:apply-templates.</P
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5545" NAME="AEN5548"
></A ></A
><P ><P
></P ></P
@@ -1361,7 +1372,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5566" NAME="AEN5569"
></A ></A
><H3 ><H3
><A ><A
@@ -1396,7 +1407,7 @@ HREF="XMLNODEPTR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5574" NAME="AEN5577"
></A ></A
><P ><P
></P ></P
@@ -1468,7 +1479,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5591" NAME="AEN5594"
></A ></A
><H3 ><H3
><A ><A
@@ -1517,7 +1528,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5596" NAME="AEN5599"
></A ></A
><H3 ><H3
><A ><A
@@ -1550,7 +1561,7 @@ HREF="libxslt-xsltinternals.html#XSLTELEMPRECOMP"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5604" NAME="AEN5607"
></A ></A
><P ><P
></P ></P
@@ -1591,7 +1602,7 @@ HREF="libxslt-xsltinternals.html#XSLTELEMPRECOMP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5614" NAME="AEN5617"
></A ></A
><H3 ><H3
><A ><A
@@ -1669,7 +1680,7 @@ precomputed data.</P
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5620" NAME="AEN5623"
></A ></A
><H3 ><H3
><A ><A
@@ -1695,7 +1706,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5625" NAME="AEN5628"
></A ></A
><H3 ><H3
><A ><A
@@ -1730,7 +1741,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5630" NAME="AEN5633"
></A ></A
><H3 ><H3
><A ><A
@@ -1756,7 +1767,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5635" NAME="AEN5638"
></A ></A
><H3 ><H3
><A ><A
@@ -1880,7 +1891,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5640" NAME="AEN5643"
></A ></A
><H3 ><H3
><A ><A
@@ -1906,7 +1917,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5645" NAME="AEN5648"
></A ></A
><H3 ><H3
><A ><A
@@ -1936,7 +1947,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5650" NAME="AEN5653"
></A ></A
><H3 ><H3
><A ><A
@@ -1966,7 +1977,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5655" NAME="AEN5658"
></A ></A
><H3 ><H3
><A ><A
@@ -1995,7 +2006,7 @@ Will return from the function.</P
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5661" NAME="AEN5664"
></A ></A
><H3 ><H3
><A ><A
@@ -2024,7 +2035,7 @@ Will goto the error: label.</P
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5667" NAME="AEN5670"
></A ></A
><H3 ><H3
><A ><A
@@ -2053,7 +2064,7 @@ Will return from the function with a 0 value.</P
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5673" NAME="AEN5676"
></A ></A
><H3 ><H3
><A ><A
@@ -2083,7 +2094,7 @@ HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5680" NAME="AEN5683"
></A ></A
><P ><P
></P ></P
@@ -2122,7 +2133,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5689" NAME="AEN5692"
></A ></A
><H3 ><H3
><A ><A
@@ -2155,7 +2166,7 @@ HREF="XMLCHAR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5697" NAME="AEN5700"
></A ></A
><P ><P
></P ></P
@@ -2211,7 +2222,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5710" NAME="AEN5713"
></A ></A
><H3 ><H3
><A ><A
@@ -2246,7 +2257,7 @@ CLASS="PARAMETER"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5718" NAME="AEN5721"
></A ></A
><P ><P
></P ></P
@@ -2284,7 +2295,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5727" NAME="AEN5730"
></A ></A
><H3 ><H3
><A ><A
@@ -2314,7 +2325,7 @@ HREF="XMLCHAR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5734" NAME="AEN5737"
></A ></A
><P ><P
></P ></P
@@ -2370,7 +2381,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5747" NAME="AEN5750"
></A ></A
><H3 ><H3
><A ><A
@@ -2405,7 +2416,7 @@ CLASS="PARAMETER"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5755" NAME="AEN5758"
></A ></A
><P ><P
></P ></P
@@ -2443,7 +2454,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5764" NAME="AEN5767"
></A ></A
><H3 ><H3
><A ><A
@@ -2481,7 +2492,7 @@ HREF="XMLCHAR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5773" NAME="AEN5776"
></A ></A
><P ><P
></P ></P
@@ -2554,7 +2565,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5790" NAME="AEN5793"
></A ></A
><H3 ><H3
><A ><A
@@ -2592,7 +2603,7 @@ HREF="XMLDOCPTR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5799" NAME="AEN5802"
></A ></A
><P ><P
></P ></P
@@ -2666,7 +2677,7 @@ went right, NULL if something went amiss.</TD
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5816" NAME="AEN5819"
></A ></A
><H3 ><H3
><A ><A
@@ -2701,7 +2712,7 @@ information related to the stylesheet output</P
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5824" NAME="AEN5827"
></A ></A
><P ><P
></P ></P
@@ -2756,7 +2767,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5837" NAME="AEN5840"
></A ></A
><H3 ><H3
><A ><A
@@ -2789,7 +2800,7 @@ HREF="XMLDOCPTR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5845" NAME="AEN5848"
></A ></A
><P ><P
></P ></P
@@ -2845,7 +2856,98 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5858" 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
><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
>&nbsp;:</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="AEN5882"
></A ></A
><H3 ><H3
><A ><A
@@ -2889,7 +2991,7 @@ transformation is done.</P
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5867" NAME="AEN5891"
></A ></A
><P ><P
></P ></P
@@ -2945,7 +3047,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5880" NAME="AEN5904"
></A ></A
><H3 ><H3
><A ><A
@@ -2983,7 +3085,7 @@ HREF="XMLNODEPTR"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5889" NAME="AEN5913"
></A ></A
><P ><P
></P ></P
@@ -3055,7 +3157,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5906" NAME="AEN5930"
></A ></A
><H3 ><H3
><A ><A
@@ -3134,7 +3236,7 @@ HREF="NUMBER"
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5924" NAME="AEN5948"
></A ></A
><P ><P
></P ></P
@@ -3241,7 +3343,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5949" NAME="AEN5973"
></A ></A
><H3 ><H3
><A ><A
@@ -3277,7 +3379,7 @@ and process xslt:text</P
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5957" NAME="AEN5981"
></A ></A
><P ><P
></P ></P
@@ -3332,7 +3434,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5970" NAME="AEN5994"
></A ></A
><H3 ><H3
><A ><A
@@ -3363,7 +3465,7 @@ the stylesheet and return its number</P
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5977" NAME="AEN6001"
></A ></A
><P ><P
></P ></P
@@ -3419,7 +3521,7 @@ VALIGN="TOP"
><HR><DIV ><HR><DIV
CLASS="REFSECT2" CLASS="REFSECT2"
><A ><A
NAME="AEN5990" NAME="AEN6014"
></A ></A
><H3 ><H3
><A ><A
@@ -3451,7 +3553,7 @@ This make sure there is a slot ready in the transformation context</P
><DIV ><DIV
CLASS="INFORMALTABLE" CLASS="INFORMALTABLE"
><A ><A
NAME="AEN5997" NAME="AEN6021"
></A ></A
><P ><P
></P ></P

View File

@@ -1,14 +1,14 @@
<MACRO> <MACRO>
<NAME>LIBXSLT_DOTTED_VERSION</NAME> <NAME>LIBXSLT_DOTTED_VERSION</NAME>
#define LIBXSLT_DOTTED_VERSION "1.0.23" #define LIBXSLT_DOTTED_VERSION "1.0.27"
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>LIBXSLT_VERSION</NAME> <NAME>LIBXSLT_VERSION</NAME>
#define LIBXSLT_VERSION 10023 #define LIBXSLT_VERSION 10027
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>LIBXSLT_VERSION_STRING</NAME> <NAME>LIBXSLT_VERSION_STRING</NAME>
#define LIBXSLT_VERSION_STRING "10023" #define LIBXSLT_VERSION_STRING "10027"
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>WITH_XSLT_DEBUG</NAME> <NAME>WITH_XSLT_DEBUG</NAME>
@@ -27,6 +27,10 @@
#define XSLT_NEED_TRIO #define XSLT_NEED_TRIO
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>XSLT_NEED_TRIO</NAME>
#define XSLT_NEED_TRIO
</MACRO>
<MACRO>
<NAME>WITH_DEBUGGER</NAME> <NAME>WITH_DEBUGGER</NAME>
#define WITH_DEBUGGER #define WITH_DEBUGGER
</MACRO> </MACRO>
@@ -1146,15 +1150,15 @@ void
</FUNCTION> </FUNCTION>
<MACRO> <MACRO>
<NAME>LIBXSLT_DOTTED_VERSION</NAME> <NAME>LIBXSLT_DOTTED_VERSION</NAME>
#define LIBXSLT_DOTTED_VERSION "1.0.23" #define LIBXSLT_DOTTED_VERSION "1.0.27"
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>LIBXSLT_VERSION</NAME> <NAME>LIBXSLT_VERSION</NAME>
#define LIBXSLT_VERSION 10023 #define LIBXSLT_VERSION 10027
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>LIBXSLT_VERSION_STRING</NAME> <NAME>LIBXSLT_VERSION_STRING</NAME>
#define LIBXSLT_VERSION_STRING "10023" #define LIBXSLT_VERSION_STRING "10027"
</MACRO> </MACRO>
<MACRO> <MACRO>
<NAME>WITH_XSLT_DEBUG</NAME> <NAME>WITH_XSLT_DEBUG</NAME>
@@ -1773,6 +1777,11 @@ xsltStylesheetPtr style,xmlNodePtr cur
xmlDocPtr doc xmlDocPtr doc
</FUNCTION> </FUNCTION>
<FUNCTION> <FUNCTION>
<NAME>xsltParseStylesheetImportedDoc</NAME>
<RETURNS>xsltStylesheetPtr </RETURNS>
xmlDocPtr doc
</FUNCTION>
<FUNCTION>
<NAME>xsltLoadStylesheetPI</NAME> <NAME>xsltLoadStylesheetPI</NAME>
<RETURNS>xsltStylesheetPtr </RETURNS> <RETURNS>xsltStylesheetPtr </RETURNS>
xmlDocPtr doc xmlDocPtr doc

View File

@@ -359,6 +359,7 @@ xsltDecimalFormatGetByName
xsltParseStylesheetProcess xsltParseStylesheetProcess
xsltParseStylesheetOutput xsltParseStylesheetOutput
xsltParseStylesheetDoc xsltParseStylesheetDoc
xsltParseStylesheetImportedDoc
xsltLoadStylesheetPI xsltLoadStylesheetPI
xsltNumberFormat xsltNumberFormat
xsltFormatNumberConversion xsltFormatNumberConversion

View File

@@ -84,11 +84,19 @@ A:link, A:visited, A:active { text-decoration: underline }
<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"> <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 <h3>CVS only : check the <a href="http://cvs.gnome.org/lxr/source/libxslt/ChangeLog">Changelog</a> file
for a really accurate description</h3> 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> <h3>1.0.27: Feb 24 2003</h3>
<ul> <ul>
<li>bug fixes: spurious xmlns:nsX=&quot;&quot; generation, serialization bug (in <li>bug fixes: spurious xmlns:nsX=&quot;&quot; generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs</li> 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> </ul>
<h3>1.0.26: Feb 10 2003</h3> <h3>1.0.26: Feb 10 2003</h3>
<ul> <ul>

View File

@@ -91,8 +91,7 @@ or libxslt wrappers or bindings:</p>
<li> <li>
<a href="http://mail.gnome.org/archives/xml/2001-March/msg00014.html">Matt <a href="http://mail.gnome.org/archives/xml/2001-March/msg00014.html">Matt
Sergeant</a> developped <a href="http://axkit.org/download/">XML::LibXML Sergeant</a> developped <a href="http://axkit.org/download/">XML::LibXML
and XML::LibXSLT</a>, Perl wrappers for libxml2/libxslt as part of the and XML::LibXSLT</a>, Perl wrappers for libxml2/libxslt as part of the <a href="http://axkit.com/">AxKit XML application server</a>
<a href="http://axkit.com/">AxKit XML application server</a>
</li> </li>
<li> <li>
<a href="mailto:dkuhlman@cutter.rexx.com">Dave Kuhlman</a> provides and <a href="mailto:dkuhlman@cutter.rexx.com">Dave Kuhlman</a> provides and
@@ -116,9 +115,8 @@ or libxslt wrappers or bindings:</p>
for PHP</a>.</li> for PHP</a>.</li>
<li> <li>
<a href="http://savannah.gnu.org/projects/classpathx/">LibxmlJ</a> is <a href="http://savannah.gnu.org/projects/classpathx/">LibxmlJ</a> is
an effort to create a 100% JAXP-compatible Java wrapper for an effort to create a 100% JAXP-compatible Java wrapper for libxml2 and
libxml2 and libxslt as part of GNU ClasspathX project. libxslt as part of GNU ClasspathX project.</li>
</li>
</ul> </ul>
<p>The libxslt Python module depends on the <a href="http://xmlsoft.org/python.html">libxml2 Python</a> module.</p> <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 <p>The distribution includes a set of Python bindings, which are garanteed to

View File

@@ -267,11 +267,20 @@ platform, get in touch with me to upload the package. I will keep them in the
href="http://cvs.gnome.org/lxr/source/libxslt/ChangeLog">Changelog</a> file href="http://cvs.gnome.org/lxr/source/libxslt/ChangeLog">Changelog</a> file
for a really accurate description</h3> 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> <h3>1.0.27: Feb 24 2003</h3>
<ul> <ul>
<li>bug fixes: spurious xmlns:nsX="" generation, serialization bug (in <li>bug fixes: spurious xmlns:nsX="" generation, serialization bug (in
libxml2), a namespace copy problem, errors in the RPM spec prereqs</li> 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> </ul>
<h3>1.0.26: Feb 10 2003</h3> <h3>1.0.26: Feb 10 2003</h3>
@@ -859,8 +868,8 @@ or libxslt wrappers or bindings:</p>
<li><a <li><a
href="http://mail.gnome.org/archives/xml/2001-March/msg00014.html">Matt href="http://mail.gnome.org/archives/xml/2001-March/msg00014.html">Matt
Sergeant</a> developped <a href="http://axkit.org/download/">XML::LibXML Sergeant</a> developped <a href="http://axkit.org/download/">XML::LibXML
and XML::LibXSLT</a>, Perl wrappers for libxml2/libxslt as part of the and XML::LibXSLT</a>, Perl wrappers for libxml2/libxslt as part of the <a
<a href="http://axkit.com/">AxKit XML application server</a></li> href="http://axkit.com/">AxKit XML application server</a></li>
<li><a href="mailto:dkuhlman@cutter.rexx.com">Dave Kuhlman</a> provides and <li><a href="mailto:dkuhlman@cutter.rexx.com">Dave Kuhlman</a> provides and
earlier version of the libxml/libxslt <a earlier version of the libxml/libxslt <a
href="http://www.rexx.com/~dkuhlman">wrappers for Python</a></li> href="http://www.rexx.com/~dkuhlman">wrappers for Python</a></li>
@@ -882,8 +891,8 @@ or libxslt wrappers or bindings:</p>
using <a href="http://siasl.dyndns.org/projects/projects.html">libxslt using <a href="http://siasl.dyndns.org/projects/projects.html">libxslt
for PHP</a>.</li> for PHP</a>.</li>
<li><a href="http://savannah.gnu.org/projects/classpathx/">LibxmlJ</a> is <li><a href="http://savannah.gnu.org/projects/classpathx/">LibxmlJ</a> is
an effort to create a 100% JAXP-compatible Java wrapper for an effort to create a 100% JAXP-compatible Java wrapper for libxml2 and
libxml2 and libxslt as part of GNU ClasspathX project. libxslt as part of GNU ClasspathX project.</li>
</ul> </ul>
<p>The libxslt Python module depends on the <a <p>The libxslt Python module depends on the <a

View File

@@ -7,8 +7,8 @@ Group: Development/Libraries
Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://xmlsoft.org/XSLT/ URL: http://xmlsoft.org/XSLT/
Requires: libxml2 >= 2.5.4 Requires: libxml2 >= 2.5.5
BuildRequires: libxml2-devel >= 2.5.4 BuildRequires: libxml2-devel >= 2.5.5
BuildRequires: python python-devel BuildRequires: python python-devel
BuildRequires: libxml2-python BuildRequires: libxml2-python
Prefix: %{_prefix} Prefix: %{_prefix}
@@ -17,26 +17,26 @@ Docdir: %{_docdir}
%description %description
This C library allows to transform XML files into other XML files This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation (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 installed. The xsltproc command is a command line interface to the XSLT engine
%package devel %package devel
Summary: Libraries, includes, etc. to embed the Gnome XSLT engine Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
Group: Development/Libraries Group: Development/Libraries
Requires: libxslt = %{version} Requires: libxslt = %{version}
Requires: libxml2-devel >= 2.5.4 Requires: libxml2-devel >= 2.5.5
%description devel %description devel
This C library allows to transform XML files into other XML files This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation (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. installed.
%package python %package python
Summary: Python bindings for the libxslt library Summary: Python bindings for the libxslt library
Group: Development/Libraries Group: Development/Libraries
Requires: libxslt = %{version} Requires: libxslt = %{version}
Requires: libxml2 >= 2.5.4 Requires: libxml2 >= 2.5.5
Requires: python Requires: python
%description python %description python

View File

@@ -638,11 +638,10 @@ xsltTestCompMatch(xsltTransformContextPtr ctxt, xsltCompMatchPtr comp,
if ((parent == NULL) || (node->doc == NULL)) if ((parent == NULL) || (node->doc == NULL))
nocache = 1; nocache = 1;
else { else {
while (parent->parent != NULL) if ((doc->name != NULL) &&
parent = parent->parent; (doc->name[0] == ' ') &&
if (((parent->type != XML_DOCUMENT_NODE) && (xmlStrEqual(BAD_CAST doc->name,
(parent->type != XML_HTML_DOCUMENT_NODE)) || BAD_CAST " fake node libxslt")))
(parent != (xmlNodePtr) node->doc))
nocache = 1; nocache = 1;
} }
if (nocache == 0) { if (nocache == 0) {

View File

@@ -3064,25 +3064,19 @@ xsltApplyTemplates(xsltTransformContextPtr ctxt, xmlNodePtr node,
(list->nodeTab[i]->doc->doc)!=ctxt->xpathCtxt->doc) { (list->nodeTab[i]->doc->doc)!=ctxt->xpathCtxt->doc) {
/* The nodeset is from another document, so must change */ /* The nodeset is from another document, so must change */
ctxt->xpathCtxt->doc=list->nodeTab[i]->doc->doc; ctxt->xpathCtxt->doc=list->nodeTab[i]->doc->doc;
if (list->nodeTab[i]->doc->type != XML_ELEMENT_NODE) { if (list->nodeTab[i]->doc->name != NULL) {
if ((ctxt->document = xsltFindDocument(ctxt, ctxt->document = xsltFindDocument(ctxt,
list->nodeTab[i]->doc->doc))==NULL) { list->nodeTab[i]->doc->doc);
xsltTransformError(ctxt, NULL, inst,
"xsl:apply-templates : can't find doc\n");
goto error;
}
ctxt->xpathCtxt->node = list->nodeTab[i]; ctxt->xpathCtxt->node = list->nodeTab[i];
#ifdef WITH_XSLT_DEBUG_PROCESS #ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext, if (ctxt->document != NULL) {
xsltGenericDebug(xsltGenericDebugContext,
"xsltApplyTemplates: Changing document - context doc %s, xpathdoc %s\n", "xsltApplyTemplates: Changing document - context doc %s, xpathdoc %s\n",
ctxt->document->doc->URL, ctxt->xpathCtxt->doc->URL); ctxt->document->doc->URL, ctxt->xpathCtxt->doc->URL);
#endif } else {
} else { xsltGenericDebug(xsltGenericDebugContext,
ctxt->xpathCtxt->node = list->nodeTab[i];
ctxt->document = NULL;
#ifdef WITH_XSLT_DEBUG_PROCESS
xsltGenericDebug(xsltGenericDebugContext,
"xsltApplyTemplates: Changing document - Return tree fragment\n"); "xsltApplyTemplates: Changing document - Return tree fragment\n");
}
#endif #endif
} }
} }

View File

@@ -360,21 +360,21 @@ xsltEvalVariable(xsltTransformContextPtr ctxt, xsltStackElemPtr elem,
/* /*
* This is a result tree fragment. * This is a result tree fragment.
*/ */
xmlNodePtr container; xmlDocPtr container;
xmlNodePtr oldInsert; xmlNodePtr oldInsert;
xmlDocPtr oldoutput; xmlDocPtr oldoutput;
container = xmlNewDocNode(NULL, NULL, container = xmlNewDoc(NULL);
(const xmlChar *) " fake node libxslt", NULL);
if (container == NULL) if (container == NULL)
return(NULL); return(NULL);
container->doc = (xmlDocPtr) container; container->name = xmlStrdup(BAD_CAST " fake node libxslt");
container->doc = container;
container->parent = NULL; container->parent = NULL;
oldoutput = ctxt->output; oldoutput = ctxt->output;
ctxt->output = (xmlDocPtr) container; ctxt->output = container;
oldInsert = ctxt->insert; oldInsert = ctxt->insert;
ctxt->insert = container; ctxt->insert = (xmlNodePtr) container;
xsltApplyOneTemplate(ctxt, ctxt->node, elem->tree, NULL, NULL); xsltApplyOneTemplate(ctxt, ctxt->node, elem->tree, NULL, NULL);
ctxt->insert = oldInsert; ctxt->insert = oldInsert;
ctxt->output = oldoutput; ctxt->output = oldoutput;
@@ -497,23 +497,21 @@ xsltEvalGlobalVariable(xsltStackElemPtr elem, xsltTransformContextPtr ctxt) {
/* /*
* This is a result tree fragment. * This is a result tree fragment.
*/ */
xmlNodePtr container; xmlDocPtr container;
xmlNodePtr oldInsert; xmlNodePtr oldInsert;
xmlDocPtr oldoutput; xmlDocPtr oldoutput;
container = xmlNewDocNode(NULL , NULL, container = xmlNewDoc(NULL);
(const xmlChar *) " fake node libxslt", NULL); if (container == NULL)
if (container == NULL) {
elem->name = name;
return(NULL); return(NULL);
} container->name = xmlStrdup(BAD_CAST " fake node libxslt");
container->doc = (xmlDocPtr) container; container->doc = container;
container->parent = NULL; container->parent = NULL;
oldoutput = ctxt->output; oldoutput = ctxt->output;
ctxt->output = (xmlDocPtr) container; ctxt->output = container;
oldInsert = ctxt->insert; oldInsert = ctxt->insert;
ctxt->insert = container; ctxt->insert = (xmlNodePtr) container;
xsltApplyOneTemplate(ctxt, ctxt->node, elem->tree, NULL, NULL); xsltApplyOneTemplate(ctxt, ctxt->node, elem->tree, NULL, NULL);
ctxt->insert = oldInsert; ctxt->insert = oldInsert;
ctxt->output = oldoutput; ctxt->output = oldoutput;