1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-06-16 21:40:58 +03:00

added new function replace from Joel Reed. added new test case for above.

* libexslt/strings.c: added new function replace from Joel
          Reed.
        * tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl,
          replace.1.out: added new test case for above.
        * libxslt.spec.in: trivial change from Gnome to GNOME
        * configure.in: trivial change for flags on my compilations
        * libxslt/documents.c, libxslt/documents.h, libxslt/keys.c,
          libxslt/keys.h, libxslt/variables.c, libxslt/templates.c,
          libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c,
          libxslt/xsltutils.c: fixed some documentation/comments and
          compilation warnings - no change to logic.
        * re-generated the documentation.

svn path=/trunk/; revision=1413
This commit is contained in:
William M. Brack
2007-01-11 03:13:13 +00:00
parent 7581a7896f
commit 40e7c29b35
44 changed files with 732 additions and 296 deletions

View File

@ -145,7 +145,7 @@ doc = libxml2.parseDoc("<doc/>")
result = style.applyStylesheet(doc, { "bar": "'success'" })
style.freeStylesheet()
doc.freeDoc()</pre><p>that part is identical, to the basic example except that the
transformation is passed a dictionnary of parameters. Note that the string
transformation is passed a dictionary of parameters. Note that the string
passed "success" had to be quoted, otherwise it is interpreted as an XPath
query for the childs of root named "success".</p><pre>root = result.children
if root.name != "article":