fix xsltSaveResultToString comment detect loops when computing variables,
authorDaniel Veillard <veillard@src.gnome.org>
Sat, 11 Feb 2006 12:14:10 +0000 (12:14 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sat, 11 Feb 2006 12:14:10 +0000 (12:14 +0000)
* libxslt/xsltutils.c: fix xsltSaveResultToString comment
* libxslt/transform.c: detect loops when computing variables, should
  fix bug #330772
* doc/xsltproc.xml doc/xsltproc.1: fix typo in man page
* tests/namespaces/tst7.out tests/general/bug-152.out: small output
  changes due to libxml2 xhtml meta handling modification
Daniel

ChangeLog
doc/xsltproc.1
doc/xsltproc.xml
libxslt/transform.c
libxslt/xsltutils.c
tests/general/bug-152.out
tests/namespaces/tst7.out

index 1203ccd..97e342f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Sat Feb 11 13:10:01 CET 2006 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/xsltutils.c: fix xsltSaveResultToString comment
+       * libxslt/transform.c: detect loops when computing variables, should
+         fix bug #330772
+       * doc/xsltproc.xml doc/xsltproc.1: fix typo in man page
+       * tests/namespaces/tst7.out tests/general/bug-152.out: small output
+         changes due to libxml2 xhtml meta handling modification
+
 Mon Nov 21 12:22:21 CET 2005 Daniel Veillard <daniel@veillard.com>
 
        * libexslt/date.c: Albert Chin found another signed/unsigned problem
index 460bcc1..7830802 100644 (file)
@@ -98,7 +98,7 @@ Do not use the Internet to fetch DTD's, entities or documents\&.
 
 .TP
 \fB\-\-path\fR \fIpaths\fR
-Use the list (separated by space or column) of filesystem paths specified by \fIpaths\fR to load DTDs, entities or documents\&.
+Use the list (separated by space or colon) of filesystem paths specified by \fIpaths\fR to load DTDs, entities or documents\&.
 
 .TP
 \fB\-\-load\-trace\fR
index f759506..3102ac2 100644 (file)
        <term> <option>--path</option> <replaceable>paths</replaceable></term>
        <listitem>
          <simpara>
-           Use the list (separated by space or column) of filesystem paths 
+           Use the list (separated by space or colon) of filesystem paths 
        specified by <replaceable>paths</replaceable> to load
         <acronym>DTDs</acronym>, entities or documents.
          </simpara>
index 5bd4d40..b9f7538 100644 (file)
@@ -1554,7 +1554,8 @@ xsltApplyOneTemplateInt(xsltTransformContextPtr ctxt, xmlNodePtr node,
         return;
     CHECK_STOPPED;
 
-    if (ctxt->templNr >= xsltMaxDepth) {
+    if ((ctxt->templNr >= xsltMaxDepth) ||
+        (ctxt->varsNr >= 5 * xsltMaxDepth)) {
         xsltTransformError(ctxt, NULL, list,
                          "xsltApplyOneTemplate: loop found ???\n");
         xsltGenericError(xsltGenericErrorContext,
index af762f7..78f30cd 100644 (file)
@@ -1544,9 +1544,9 @@ xsltSaveResultToFd(int fd, xmlDocPtr result, xsltStylesheetPtr style) {
  * @style:  the stylesheet
  *
  * Save the result @result obtained by applying the @style stylesheet
- * to a file or @URL
+ * to a new allocated string.
  *
- * Returns the number of byte written or -1 in case of failure.
+ * Returns 0 in case of success and -1 in case of error
  */
 int
 xsltSaveResultToString(xmlChar **doc_txt_ptr, int * doc_txt_len, 
index 3d23ac9..7bdd337 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="US-ASCII"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
-  <head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII" />
     <style type="text/css" media="all">@import
 "pretty_xhtml.css";</style>
   </head>
index 47cc1e7..b86f605 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
-  <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>
                                         A title
                                 </title>