From c66126835d4df59cf4aaea9876c27546727b33eb Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 1 Aug 2002 12:30:37 +0000 Subject: [PATCH] upon suggestion of Marc-Andre Lemburg, make the misdetection of libxml2 * configure.in: upon suggestion of Marc-Andre Lemburg, make the misdetection of libxml2 python bindings a warning only Daniel --- ChangeLog | 5 + configure.in | 4 +- doc/API.html | 12 +- doc/FAQ.html | 18 +-- doc/bugs.html | 18 +-- doc/contribs.html | 16 +-- doc/docbook.html | 30 ++--- doc/docs.html | 4 +- doc/downloads.html | 8 +- doc/extensions.html | 48 ++++---- doc/help.html | 10 +- doc/index.html | 4 +- doc/internals.html | 130 ++++++++++----------- doc/intro.html | 8 +- doc/news.html | 270 ++++++++++++++++++++++---------------------- doc/python.html | 24 ++-- 16 files changed, 309 insertions(+), 300 deletions(-) diff --git a/ChangeLog b/ChangeLog index 655c3bcf..f6a6f935 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 1 14:29:11 CEST 2002 Daniel Veillard + + * configure.in: upon suggestion of Marc-Andre Lemburg, make + the misdetection of libxml2 python bindings a warning only + Sun Jul 21 19:10:00 HKT 2002 William Brack * xsltInternals.h/xslt.c/transform.c and pattern.c: fixed diff --git a/configure.in b/configure.in index 143427e7..9877961c 100644 --- a/configure.in +++ b/configure.in @@ -155,10 +155,10 @@ except: print 0"` then echo Found libxml2-python module else - echo Missing libxml2-python + echo Warning: Missing libxml2-python fi fi - if test "$PYTHON_VERSION" != "" -a "$LIBXML2_PYTHON" = "1" + if test "$PYTHON_VERSION" != "" then if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ -d $with_python/lib/python$PYTHON_VERSION/site-packages diff --git a/doc/API.html b/doc/API.html index 2dd3baa9..bb0307d7 100644 --- a/doc/API.html +++ b/doc/API.html @@ -83,12 +83,12 @@ of libxslt/xsltproc.c and the tutorial
  1. configure the parser for XSLT:

    xmlSubstituteEntitiesDefault(1);

    -

    xmlLoadExtDtdDefaultValue = 1;

    -
  2. -
  3. parse the stylesheet with xsltParseStylesheetFile()
  4. -
  5. parse the document with xmlParseFile()
  6. -
  7. apply the stylesheet using xsltApplyStylesheet()
  8. -
  9. save the result using xsltSaveResultToFile() if needed set +

    xmlLoadExtDtdDefaultValue = 1;

    +
  10. +
  11. parse the stylesheet with xsltParseStylesheetFile()
  12. +
  13. parse the document with xmlParseFile()
  14. +
  15. apply the stylesheet using xsltApplyStylesheet()
  16. +
  17. save the result using xsltSaveResultToFile() if needed set xmlIndentTreeOutput to 1

Steps 2,3, and 5 will probably need to be changed depending on you diff --git a/doc/FAQ.html b/doc/FAQ.html index 3c0cd636..0746e047 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -75,21 +75,23 @@ A:link, A:visited, A:active { text-decoration: underline }
-
  1. +
      +
    1. passing parameters on the xsltproc command line doesn't work

      xsltproc --param test alpha foo.xsl foo.xml

      -

      the param does not get passed and ends up as ""

      -

      In a nutshell do a double escaping at the shell prompt:

      -

      xsltproc --param test "'alpha'" foo.xsl foo.xml

      -

      i.e. the string value is surrounded by " and ' then terminated by ' +

      the param does not get passed and ends up as ""

      +

      In a nutshell do a double escaping at the shell prompt:

      +

      xsltproc --param test "'alpha'" foo.xsl foo.xml

      +

      i.e. the string value is surrounded by " and ' then terminated by ' and ". Libxslt interpret the parameter values as XPath expressions, so the string ->alpha<- is intepreted as the node set matching this string. You really want ->'alpha'<- to be passed to the processor. And to allow this you need to escape the quotes at the shell level using ->"'alpha'"<- .

      -

      or use

      -

      xsltproc --stringparam test alpha foo.xsl foo.xml

      -
    +

    or use

    +

    xsltproc --stringparam test alpha foo.xsl foo.xml

    +
  2. +

Daniel Veillard

diff --git a/doc/bugs.html b/doc/bugs.html index 2823b6a6..6f6e8602 100644 --- a/doc/bugs.html +++ b/doc/bugs.html @@ -81,18 +81,18 @@ useful resources:

  • I strongly suggest to subscribe to XSL-list, check the XSL-list archives
  • -
  • The XSL FAQ.
  • -
  • The tutorial +
  • The XSL FAQ.
  • +
  • The tutorial written by Paul Grosso and Norman Walsh is a very good on-line introdution to the language.
  • -
  • The only +
  • The only Zvon XSLT tutorial details a lot of constructs with examples.
  • -
  • +
  • Jeni Tennison's XSLT pages provide links to a lot of answers
  • -
  • the Gallery of +
  • the Gallery of XSLT Tricks provides non-standard use case of XSLT
  • -
  • And I suggest to buy Michael Kay "XSLT Programmer's Reference" book +
  • And I suggest to buy Michael Kay "XSLT Programmer's Reference" book published by Wrox if you plan to work seriously with XSLT in the future.
  • @@ -115,16 +115,16 @@ really appreciated!).

    • make sure you are using a recent version, and that the problem still shows up in those
    • -
    • check the list +
    • check the list archives to see if the problem was reported already, in this case there is probably a fix available, similarly check the registered open bugs
    • -
    • make sure you can reproduce the bug with xsltproc, a very useful thing +
    • make sure you can reproduce the bug with xsltproc, a very useful thing to do is run the transformation with -v argument and redirect the standard error to a file, then search in this file for the transformation logs just preceding the possible problem
    • -
    • Please send the command showing the error as well as the input and +
    • Please send the command showing the error as well as the input and stylesheet (as an attachment)

    Of course, bugs reports with a suggested patch for fixing them will diff --git a/doc/contribs.html b/doc/contribs.html index 72f3c69b..fe793950 100644 --- a/doc/contribs.html +++ b/doc/contribs.html @@ -78,34 +78,34 @@ A:link, A:visited, A:active { text-decoration: underline }

    I'm still waiting for someone to contribute a simple XSLT processing diff --git a/doc/docbook.html b/doc/docbook.html index fee2f30a..6d5fc083 100644 --- a/doc/docbook.html +++ b/doc/docbook.html @@ -86,39 +86,39 @@ few pointers and informations which may be helpful:

  • The DocBook homepage at Oasis you should find pointers there on all the lastest versions of the DTDs and XSLT stylesheets
  • -
  • +
  • DocBook: The Definitive Guide is the official reference documentation for DocBook.
  • -
  • +
  • DocBook Open Repository contains a lot of informations about DocBook
  • -
  • Here is a shell script to generate +
  • Here is a shell script to generate XML Catalogs for DocBook 4.1.2 . If it can write to the /etc/xml/ directory, it will set-up /etc/xml/catalog and /etc/xml/docbook based on the resources found on the system. Otherwise it will just create ~/xmlcatalog and ~/dbkxmlcatalog and doing:

    export XMLCATALOG=$HOME/xmlcatalog

    -

    should allow to process DocBook documentations without requiring +

    should allow to process DocBook documentations without requiring network accesses for the DTd or stylesheets

    -
  • -
  • I have uploaded a +
  • +
  • I have uploaded a small tarball containing XML Catalogs for DocBook 4.1.2 which seems to work fine for me too
  • -
  • Informations on installing a Windows +
  • Informations on installing a Windows DocBook processing setup based on Cygwin (using the binaries from the official Windows port should be possible too)
  • -
  • Alexander Kirillov's page on Using DocBook XML +
  • Alexander Kirillov's page on Using DocBook XML 4.1.2 (RPM packages)
  • -
  • Tim Waugh's xmlto front-end +
  • Tim Waugh's xmlto front-end conversion script
  • -
  • Linux Documentation Project +
  • Linux Documentation Project DocBook-Install-mini-HOWTO
  • -
  • ScrollKeeper the open documentation cataloging project has a DocBook +
  • ScrollKeeper the open documentation cataloging project has a DocBook section
  • -
  • Dan York presentation on Publishing +
  • Dan York presentation on Publishing using DocBook XML
  • @@ -132,13 +132,13 @@ again:

    XML Catalogs pointing to a local installation of the DTD of DocBook. Check the XML Catalog page to understand more on this subject. -
  • before processing a new document, use the command +
  • before processing a new document, use the command

    xmllint --valid --noout path_to_document

    -

    to make sure that your input is valid DocBook. And fixes the errors +

    to make sure that your input is valid DocBook. And fixes the errors before processing further. Note that XSLT processing may work correctly with some forms of validity errors left, but in general it can give troubles on output.

    -
  • +

    Daniel Veillard

    diff --git a/doc/docs.html b/doc/docs.html index d7833ccb..af75871e 100644 --- a/doc/docs.html +++ b/doc/docs.html @@ -80,9 +80,9 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Check the API documentation automatically extracted from code comments (using gtk doc).
  • -
  • Look at the mailing-list +
  • Look at the mailing-list archive.
  • -
  • Of course since libxslt is based on libxml, it's a good idea to at +
  • Of course since libxslt is based on libxml, it's a good idea to at least read libxml description
  • diff --git a/doc/downloads.html b/doc/downloads.html index 1d4176f3..2c43cb51 100644 --- a/doc/downloads.html +++ b/doc/downloads.html @@ -95,10 +95,12 @@ platform, get in touch with me to upload the package. I will keep them in the

    Libxslt is also available from CVS:

    diff --git a/doc/extensions.html b/doc/extensions.html index e77fe4cf..1c950f98 100644 --- a/doc/extensions.html +++ b/doc/extensions.html @@ -78,24 +78,24 @@ A:link, A:visited, A:active { text-decoration: underline }

    Table of content

    Introduction

    This document describes the work needed to write extensions to the @@ -110,7 +110,7 @@ two ways to extend an XSLT engine:

    In both cases the extensions need to be associated to a new namespace, @@ -133,8 +133,8 @@ element.

    And extension module is defined by 3 objects:

    • the namespace name associated
    • -
    • an initialization function
    • -
    • a shutdown function
    • +
    • an initialization function
    • +
    • a shutdown function

    Registering a module

    Currently a libxslt module has to be compiled within the application using @@ -174,10 +174,10 @@ typedef void *(*xsltExtInitFunction)(xsltTransformContextPtr ctxt,

  • the function gets passed the namespace name URI as an argument, this allow a single function to provide the initialization for multiple logical modules
  • -
  • it also gets passed a transformation context, the initialization is +
  • it also gets passed a transformation context, the initialization is done at run time before any processing occurs on the stylesheet but it will be invoked separately each time for each transformation
  • -
  • it returns a pointer, this can be used to store module specific +
  • it returns a pointer, this can be used to store module specific informations which can be retrieved later when a function or an element from the extension are used, an obvious example is a connection to a database which should be kept and reused along the transformation. NULL @@ -188,7 +188,7 @@ typedef void *(*xsltExtInitFunction)(xsltTransformContextPtr ctxt,
    • prepare the context for this module (like opening the database connection)
    • -
    • register the extensions specific to this module
    • +
    • register the extensions specific to this module

    Registering an extension function

    There is a single call to do this registration:

    @@ -222,8 +222,8 @@ find one from the other:

    xsltTransformContextPtr
              xsltXPathGetTransformContext
                               (xmlXPathParserContextPtr ctxt);
    -
  • -
  • The xmlXPathContextPtr associated to an +
  • +
  • The xmlXPathContextPtr associated to an xsltTransformContext is stored in the xpathCtxt field.
  • @@ -260,7 +260,7 @@ registering the module.

  • push the return value on the stack using valuePush(ctxt, obj)
  • -
  • deallocate the parameters passed to the function using +
  • deallocate the parameters passed to the function using xmlXPathFreeObject(obj)
  • @@ -420,11 +420,11 @@ close the connection to the database to keep the same example.

    Well some of the pieces missing:

    • a way to load shared libraries to instanciate new modules
    • -
    • a better detection of extension function usage and their registration +
    • a better detection of extension function usage and their registration without having to use the extension prefix which ought to be reserved to element extensions.
    • -
    • more examples
    • -
    • implementations of the EXSLT common +
    • more examples
    • +
    • implementations of the EXSLT common extension libraries, Thomas Broyer nearly finished implementing them.

    diff --git a/doc/help.html b/doc/help.html index 150503ed..e336ee3b 100644 --- a/doc/help.html +++ b/doc/help.html @@ -80,14 +80,14 @@ subscribe to the mailing-list as explained before, check the Get in touch with me before to avoid synchronization problems and check that the suggested fix will fit in nicely :-) diff --git a/doc/index.html b/doc/index.html index ca437eb5..36ad7831 100644 --- a/doc/index.html +++ b/doc/index.html @@ -88,8 +88,8 @@ reused in commercial applications (see the intro)

  • John Fleck wrote a tutorial for libxslt
  • -
  • xsltproc user manual
  • -
  • the libxml documentation
  • +
  • xsltproc user manual
  • +
  • the libxml documentation
  • Daniel Veillard

    diff --git a/doc/internals.html b/doc/internals.html index 03bf62f0..b84e029b 100644 --- a/doc/internals.html +++ b/doc/internals.html @@ -78,22 +78,22 @@ A:link, A:visited, A:active { text-decoration: underline }

    Table of contents

    Introduction

    This document describes the processing of libxslt, the XSLT C library developed for the Gnome project.

    @@ -107,10 +107,10 @@ stylesheet document and generates an output document:

    the following operations:

    • parsing files
    • -
    • building the in-memory DOM structure associated with the documents +
    • building the in-memory DOM structure associated with the documents handled
    • -
    • the XPath implementation
    • -
    • serializing back the result document to XML and HTML. (Text is handled +
    • the XPath implementation
    • +
    • serializing back the result document to XML and HTML. (Text is handled directly.)

    Keep it simple stupid

    @@ -129,7 +129,7 @@ stylesheets. In general the implementation of libxslt follows the following pattern:

    • KISS (keep it simple stupid)
    • -
    • when there is a clear bottleneck optimize on top of this simple +
    • when there is a clear bottleneck optimize on top of this simple framework and refine only as much as is needed to reach the expected result
    @@ -148,19 +148,19 @@ variations depending on the node type:

    indicates the kind of node it represents, the most common ones are:

    • document nodes
    • -
    • element nodes
    • -
    • text nodes
    • +
    • element nodes
    • +
    • text nodes

    For the XSLT processing, entity nodes should not be generated (i.e. they should be replaced by their content). Most nodes also contains the following "navigation" informations:

    • the containing document
    • -
    • the parent node
    • -
    • the first children node
    • -
    • the last children node
    • -
    • the previous sibling
    • -
    • the following sibling (next)
    • +
    • the parent node
    • +
    • the first children node
    • +
    • the last children node
    • +
    • the previous sibling
    • +
    • the following sibling (next)

    Elements nodes carries the list of attributes in the properties, an attribute itself holds the navigation pointers and the children list (the @@ -176,21 +176,21 @@ used by the application to hold specific data on this node.

    level:

    1. parse the stylesheet and generate a DOM tree
    2. -
    3. take the stylesheet tree and build a compiled version of it (the +
    4. take the stylesheet tree and build a compiled version of it (the compilation phase)
    5. -
    6. take the input and generate a DOM tree
    7. -
    8. process the stylesheet against the input tree and generate an output +
    9. take the input and generate a DOM tree
    10. +
    11. process the stylesheet against the input tree and generate an output tree
    12. -
    13. serialize the output tree
    14. +
    15. serialize the output tree

    A few things should be noted here:

    • the steps 1/ 3/ and 5/ are optional
    • -
    • the stylesheet obtained at 2/ can be reused by multiple processing 4/ +
    • the stylesheet obtained at 2/ can be reused by multiple processing 4/ (and this should also work in threaded programs)
    • -
    • the tree provided in 2/ should never be freed using xmlFreeDoc, but by +
    • the tree provided in 2/ should never be freed using xmlFreeDoc, but by freeing the stylesheet.
    • -
    • the input tree 4/ is not modified except the _private field which may +
    • the input tree 4/ is not modified except the _private field which may be used for labelling keys if used by the stylesheet

    The XSLT stylesheet compilation

    @@ -267,22 +267,22 @@ applying the following algorithm:

    hash table, walking the hash list until the node satisfies all the steps of the pattern, then checking the appropriate(s) global templates to see if there isn't a higher priority rule to apply -
  • If there is no template, apply the default rule (recurse on the +
  • If there is no template, apply the default rule (recurse on the children)
  • -
  • else walk the content list of the selected templates, for each of them: +
  • else walk the content list of the selected templates, for each of them:
    • if the node is in the XSLT namespace then the node has a _private field pointing to the preprocessed values, jump to the specific code
    • -
    • if the node is in an extension namespace, look up the associated +
    • if the node is in an extension namespace, look up the associated behavior
    • -
    • otherwise copy the node.
    • -
    +
  • otherwise copy the node.
  • +

    The closure is usually done through the XSLT apply-templates construct recursing by applying the adequate template on the input node children or on the result of an associated XPath selection lookup.

    - +

    Note that large parts of the input tree may not be processed by a given stylesheet and that on the opposite some may be processed multiple times. @@ -292,15 +292,15 @@ logic. xsltApplyStylesheet() is the entry point, it allocates an xsltTransformContext containing the following:

    • a pointer to the stylesheet being processed
    • -
    • a stack of templates
    • -
    • a stack of variables and parameters
    • -
    • an XPath context
    • -
    • the template mode
    • -
    • current document
    • -
    • current input node
    • -
    • current selected node list
    • -
    • the current insertion points in the output document
    • -
    • a couple of hash tables for extension elements and functions
    • +
    • a stack of templates
    • +
    • a stack of variables and parameters
    • +
    • an XPath context
    • +
    • the template mode
    • +
    • current document
    • +
    • current input node
    • +
    • current selected node list
    • +
    • the current insertion points in the output document
    • +
    • a couple of hash tables for extension elements and functions

    Then a new document gets allocated (HTML or XML depending on the type of output), the user parameters and global variables and parameters are @@ -335,7 +335,7 @@ containing the parsed expression tree, for example the expression:

    This can be tested using the testXPath command (in the libxml codebase) using the --tree option.

    Again, the KISS approach is used. No optimization is done. This could be -an interesting thing to add. Michael +an interesting thing to add. Michael Kay describes a lot of possible and interesting optimizations done in Saxon which would be possible at this level. I'm unsure they would provide much gain since the expressions tends to be relatively simple in general and @@ -354,13 +354,13 @@ transformation the context is maintained within the XSLT context. Its content follows the requirements from the XPath specification:

    • the current document
    • -
    • the current node
    • -
    • a hash table of defined variables (but not used by XSLT)
    • -
    • a hash table of defined functions
    • -
    • the proximity position (the place of the node in the current node +
    • the current node
    • +
    • a hash table of defined variables (but not used by XSLT)
    • +
    • a hash table of defined functions
    • +
    • the proximity position (the place of the node in the current node list)
    • -
    • the context size (the size of the current node list)
    • -
    • the array of namespace declarations in scope (there also is a namespace +
    • the context size (the size of the current node list)
    • +
    • the array of namespace declarations in scope (there also is a namespace hash table but it is not used in the XSLT transformation).

    For the purpose of XSLT an extra pointer has been added @@ -403,17 +403,17 @@ the stack).

    • check nargs for proper handling of errors or functions with variable numbers of parameters
    • -
    • pop the parameters from the stack using obj = +
    • pop the parameters from the stack using obj = valuePop(ctxt);
    • -
    • do the function specific computation
    • -
    • push the result parameter on the stack using valuePush(ctxt, +
    • do the function specific computation
    • +
    • push the result parameter on the stack using valuePush(ctxt, res);
    • -
    • free up the input parameters with +
    • free up the input parameters with xmlXPathFreeObject(obj);
    • -
    • return
    • +
    • return

    Sometime the work can be done directly by modifying in-situ the top object on the stack ctxt->value.

    @@ -435,7 +435,7 @@ the code will be stable. TODO

    There is a separate document explaining how the extension support works.

    Further reading

    -

    Michael Kay wrote a +

    Michael Kay wrote a really interesting article on Saxon internals and the work he did on performance issues. I wishes I had read it before starting libxslt design (I would probably have avoided a few mistakes and progressed faster). A lot of @@ -452,11 +452,11 @@ for output should be added directly to libxml).

    especially:

    • static slot allocation on the stack frame
    • -
    • specific boolean interpretation of an XPath expression
    • -
    • some of the sorting optimization
    • -
    • Lazy evaluation of location path. (this may require more changes but +
    • specific boolean interpretation of an XPath expression
    • +
    • some of the sorting optimization
    • +
    • Lazy evaluation of location path. (this may require more changes but sounds really interesting. XT does this too.)
    • -
    • Optimization of an expression tree (This could be done as a completely +
    • Optimization of an expression tree (This could be done as a completely independent module.)

    diff --git a/doc/intro.html b/doc/intro.html index abdbcad4..a79a9d6b 100644 --- a/doc/intro.html +++ b/doc/intro.html @@ -81,15 +81,15 @@ the XSLT C library developed for the

    Here are some key points about libxslt:

    • Libxslt is a C implementation
    • -
    • Libxslt is based on libxml for XML parsing, tree manipulation and XPath +
    • Libxslt is based on libxml for XML parsing, tree manipulation and XPath support
    • -
    • It is written in plain C, making as few assumptions as possible, and +
    • It is written in plain C, making as few assumptions as possible, and sticking closely to ANSI C/POSIX for easy embedding. Should works on Linux/Unix/Windows.
    • -
    • This library is released under the MIT +
    • This library is released under the MIT Licence
    • -
    • Though not designed primarily with performances in mind, libxslt seems +
    • Though not designed primarily with performances in mind, libxslt seems to be a relatively fast processor.

    Daniel Veillard

    diff --git a/doc/news.html b/doc/news.html index afeef6c0..2dcf7de0 100644 --- a/doc/news.html +++ b/doc/news.html @@ -80,12 +80,12 @@ for a really accurate description

    1.0.19: July 6 2002

    • EXSLT: dynamic functions and date support bug fixes (Mark Vakoc)
    • -
    • xsl:number fix: Richard Jinks
    • -
    • xsl:format-numbers fix: Ken Neighbors
    • -
    • document('') fix: bug pointed by Eric van der Vlist
    • -
    • xsl:message with terminate="yes" fixes: William Brack
    • -
    • xsl:sort order support added: Ken Neighbors
    • -
    • a few other bug fixes, some of them requiring the latest version of +
    • xsl:number fix: Richard Jinks
    • +
    • xsl:format-numbers fix: Ken Neighbors
    • +
    • document('') fix: bug pointed by Eric van der Vlist
    • +
    • xsl:message with terminate="yes" fixes: William Brack
    • +
    • xsl:sort order support added: Ken Neighbors
    • +
    • a few other bug fixes, some of them requiring the latest version of libxml2

    1.0.18: May 27 2002

    @@ -94,317 +94,317 @@ for a really accurate description (DocBook), xsl:include crash (Igor), documentation (Christian Cornelssen, Charles Bozeman and Geert Kloosterman), element-available (Richard Jinks) -
  • xsltproc can now list teh registered extensions thanks to Mark +
  • xsltproc can now list teh registered extensions thanks to Mark Vakoc
  • -
  • there is a new API to save directly to a string +
  • there is a new API to save directly to a string xsltSaveResultToString() by Morus Walter
  • -
  • specific error registration function for the python API
  • +
  • specific error registration function for the python API
  • 1.0.17: April 29 2002

    • cleanup in code, XSLT debugger support and Makefiles for Windows by Igor
    • -
    • a C++ portability fix by Mark Vakoc
    • -
    • EXSLT date improvement and regression tests by Charles Bozeman
    • -
    • attempt to fix a bug in xsltProcessUserParamInternal
    • +
    • a C++ portability fix by Mark Vakoc
    • +
    • EXSLT date improvement and regression tests by Charles Bozeman
    • +
    • attempt to fix a bug in xsltProcessUserParamInternal

    1.0.16: April 15 2002

    • Bug fixes: strip-space, URL in HTML output, error when xsltproc can't save
    • -
    • portability fixes: OSF/1, IEEE on alphas, Windows, Python bindings
    • +
    • portability fixes: OSF/1, IEEE on alphas, Windows, Python bindings

    1.0.15: Mar 25 2002

    • Bugfixes: XPath, python Makefile, recursive attribute sets, @foo[..] templates
    • -
    • Debug of memory alocation with valgind
    • -
    • serious profiling leading to significant improvement for DocBook +
    • Debug of memory alocation with valgind
    • +
    • serious profiling leading to significant improvement for DocBook processing
    • -
    • revamp of the Windows build
    • +
    • revamp of the Windows build

    1.0.14: Mar 18 2002

    • Improvement in the XPath engine (libxml2-2.4.18)
    • -
    • Nasty bug fix related to exslt:node-set
    • -
    • Fixed the python Makefiles, cleanup of doc comments, Windows +
    • Nasty bug fix related to exslt:node-set
    • +
    • Fixed the python Makefiles, cleanup of doc comments, Windows portability fixes

    1.0.13: Mar 8 2002

    • a number of bug fixes including "namespace node have no parents"
    • -
    • Improvement of the Python bindings
    • -
    • Charles Bozeman provided fixes and regression tests for exslt date +
    • Improvement of the Python bindings
    • +
    • Charles Bozeman provided fixes and regression tests for exslt date functions.

    1.0.12: Feb 11 2002

    • Fixed the makefiles especially the python module ones
    • -
    • half a dozen bugs fixes including 2 old ones
    • +
    • half a dozen bugs fixes including 2 old ones

    1.0.11: Feb 8 2002

    • Change of Licence to the MIT Licence
    • -
    • Added a beta version of the Python bindings, including support to +
    • Added a beta version of the Python bindings, including support to extend the engine with functions written in Python
    • -
    • A number of bug fixes
    • -
    • Charlie Bozeman provided more EXSLT functions
    • -
    • Portability fixes
    • +
    • A number of bug fixes
    • +
    • Charlie Bozeman provided more EXSLT functions
    • +
    • Portability fixes

    1.0.10: Jan 14 2002

    • Windows fixes for Win32 from Igor
    • -
    • Fixed the Solaris compilation trouble (Albert)
    • -
    • Documentation changes and updates: John Fleck
    • -
    • Added a stringparam option to avoid escaping hell at the shell +
    • Fixed the Solaris compilation trouble (Albert)
    • +
    • Documentation changes and updates: John Fleck
    • +
    • Added a stringparam option to avoid escaping hell at the shell level
    • -
    • A few bug fixes
    • +
    • A few bug fixes

    1.0.9: Dec 7 2001

    • Makefile patches from Peter Williams
    • -
    • attempt to fix the compilation problem associated to prelinking
    • -
    • obsoleted libxsltbreakpoint now deprecated and frozen to 1.0.8 API
    • -
    • xsltproc return codes are now significant, John Fleck updated the +
    • attempt to fix the compilation problem associated to prelinking
    • +
    • obsoleted libxsltbreakpoint now deprecated and frozen to 1.0.8 API
    • +
    • xsltproc return codes are now significant, John Fleck updated the documentation
    • -
    • patch to allow as much as 40 steps in patterns (Marc Tardif), should be +
    • patch to allow as much as 40 steps in patterns (Marc Tardif), should be made dynamic really
    • -
    • fixed a bug raised by Nik Clayton when using doctypes with HTML +
    • fixed a bug raised by Nik Clayton when using doctypes with HTML output
    • -
    • patches from Keith Isdale to interface with xsltdebugger
    • +
    • patches from Keith Isdale to interface with xsltdebugger

    1.0.8: Nov 26 2001

    • fixed an annoying header problem, removed a few bugs and some code cleanup
    • -
    • patches for Windows and update of Windows Makefiles by Igor
    • -
    • OpenVMS port instructions from John A Fotheringham
    • -
    • fixed some Makefiles annoyance and libraries prelinking +
    • patches for Windows and update of Windows Makefiles by Igor
    • +
    • OpenVMS port instructions from John A Fotheringham
    • +
    • fixed some Makefiles annoyance and libraries prelinking informations

    1.0.7: Nov 10 2001

    • remove a compilation problem with LIBXSLT_PUBLIC
    • -
    • Finishing the integration steps for Keith Isdale debugger
    • -
    • fixes the handling of indent="no" on HTML output
    • -
    • fixes on the configure script and RPM spec file
    • +
    • Finishing the integration steps for Keith Isdale debugger
    • +
    • fixes the handling of indent="no" on HTML output
    • +
    • fixes on the configure script and RPM spec file

    1.0.6: Oct 30 2001

    • bug fixes on number formatting (Thomas), date/time functions (Bruce Miller)
    • -
    • update of the Windows Makefiles (Igor)
    • -
    • fixed DOCTYPE generation rules for HTML output (me)
    • +
    • update of the Windows Makefiles (Igor)
    • +
    • fixed DOCTYPE generation rules for HTML output (me)

    1.0.5: Oct 10 2001

    • some portability fixes, including Windows makefile updates from Igor
    • -
    • fixed a dozen bugs on XSLT and EXSLT (me and Thomas Broyer)
    • -
    • support for Saxon's evaluate and expressions extensions added (initial +
    • fixed a dozen bugs on XSLT and EXSLT (me and Thomas Broyer)
    • +
    • support for Saxon's evaluate and expressions extensions added (initial contribution from Darren Graves)
    • -
    • better handling of XPath evaluation errors
    • +
    • better handling of XPath evaluation errors

    1.0.4: Sep 12 2001

    • Documentation updates from John fleck
    • -
    • bug fixes (DocBook FO generation should be fixed) and portability +
    • bug fixes (DocBook FO generation should be fixed) and portability improvements
    • -
    • Thomas Broyer improved the existing EXSLT support and added String, +
    • Thomas Broyer improved the existing EXSLT support and added String, Time and Date core functions support

    1.0.3: Aug 23 2001

    • XML Catalog support see the doc
    • -
    • New NaN/Infinity floating point code
    • -
    • A few bug fixes
    • +
    • New NaN/Infinity floating point code
    • +
    • A few bug fixes

    1.0.2: Aug 15 2001

    • lot of bug fixes, increased the testsuite
    • -
    • a large chunk of EXSLT is implemented
    • -
    • improvements on the extension framework
    • -
    • documentation improvements
    • -
    • Windows MSC projects files should be up-to-date
    • -
    • handle attributes inherited from the DTD by default
    • +
    • a large chunk of EXSLT is implemented
    • +
    • improvements on the extension framework
    • +
    • documentation improvements
    • +
    • Windows MSC projects files should be up-to-date
    • +
    • handle attributes inherited from the DTD by default

    1.0.1: July 24 2001

    • initial EXSLT framework
    • -
    • better error reporting
    • -
    • fixed the profiler on Windows
    • -
    • bug fixes
    • +
    • better error reporting
    • +
    • fixed the profiler on Windows
    • +
    • bug fixes

    1.0.0: July 10 2001

    • a lot of cleanup, a lot of regression tests added or fixed
    • -
    • added a documentation for writing +
    • added a documentation for writing extensions
    • -
    • fixed some variable evaluation problems (with William)
    • -
    • added profiling of stylesheet execution accessible as the xsltproc +
    • fixed some variable evaluation problems (with William)
    • +
    • added profiling of stylesheet execution accessible as the xsltproc --profile option
    • -
    • fixed element-available() and the implementation of the various +
    • fixed element-available() and the implementation of the various chunking methods present, Norm Walsh provided a lot of feedback
    • -
    • exclude-result-prefixes and namespaces output should now work as +
    • exclude-result-prefixes and namespaces output should now work as expected
    • -
    • added support of embedded stylesheet as described in section 2.7 of the +
    • added support of embedded stylesheet as described in section 2.7 of the spec

    0.14.0: July 5 2001

    • lot of bug fixes, and code cleanup
    • -
    • completion of the little XSLT-1.0 features left unimplemented
    • -
    • Added and implemented the extension API suggested by Thomas Broyer
    • -
    • the Windows MSC environment should be complete
    • -
    • tested and optimized with a really large document (DocBook Definitive +
    • completion of the little XSLT-1.0 features left unimplemented
    • +
    • Added and implemented the extension API suggested by Thomas Broyer
    • +
    • the Windows MSC environment should be complete
    • +
    • tested and optimized with a really large document (DocBook Definitive Guide) libxml/libxslt should really be faster on serious workloads

    0.13.0: June 26 2001

    • lots of cleanups
    • -
    • fixed a C++ compilation problem
    • -
    • couple of fixes to xsltSaveTo()
    • -
    • try to fix Docbook-xslt-1.4 and chunking, updated the regression test +
    • fixed a C++ compilation problem
    • +
    • couple of fixes to xsltSaveTo()
    • +
    • try to fix Docbook-xslt-1.4 and chunking, updated the regression test with them
    • -
    • fixed pattern compilation and priorities problems
    • -
    • Patches for Windows and MSC project mostly contributed by Yon Derek
    • -
    • update to the Tutorial by John Fleck
    • -
    • William fixed bugs in templates and for-each functions
    • -
    • added a new interface xsltRunStylesheet() for a more flexible output +
    • fixed pattern compilation and priorities problems
    • +
    • Patches for Windows and MSC project mostly contributed by Yon Derek
    • +
    • update to the Tutorial by John Fleck
    • +
    • William fixed bugs in templates and for-each functions
    • +
    • added a new interface xsltRunStylesheet() for a more flexible output (incomplete), added -o option to xsltproc

    0.12.0: June 18 2001

    • fixed a dozen of bugs reported
    • -
    • HTML generation should be quite better (requires libxml-2.3.11 upgrade +
    • HTML generation should be quite better (requires libxml-2.3.11 upgrade too)
    • -
    • William fixed some problems with document()
    • -
    • Fix namespace nodes selection and copy (requires libxml-2.3.11 upgrade +
    • William fixed some problems with document()
    • +
    • Fix namespace nodes selection and copy (requires libxml-2.3.11 upgrade too)
    • -
    • John Fleck added a +
    • John Fleck added a tutorial
    • -
    • Fixes for namespace handling when evaluating variables
    • -
    • XInclude global flag added to process XInclude on document() if +
    • Fixes for namespace handling when evaluating variables
    • +
    • XInclude global flag added to process XInclude on document() if requested
    • -
    • made xsltproc --version more detailed
    • +
    • made xsltproc --version more detailed

    0.11.0: June 1 2001

    Mostly a bug fix release.

    • integration of catalogs from xsltproc
    • -
    • added --version to xsltproc for bug reporting
    • -
    • fixed errors when handling ID in external parsed entities
    • -
    • document() should hopefully work correctly but ...
    • -
    • fixed bug with PI and comments processing
    • -
    • William fixed the XPath string functions when using unicode
    • +
    • added --version to xsltproc for bug reporting
    • +
    • fixed errors when handling ID in external parsed entities
    • +
    • document() should hopefully work correctly but ...
    • +
    • fixed bug with PI and comments processing
    • +
    • William fixed the XPath string functions when using unicode

    0.10.0: May 19 2001

    • cleanups to make stylesheet read-only (not 100% complete)
    • -
    • fixed URI resolution in document()
    • -
    • force all XPath expression to be compiled at stylesheet parsing time, +
    • fixed URI resolution in document()
    • +
    • force all XPath expression to be compiled at stylesheet parsing time, even if unused ...
    • -
    • Fixed HTML default output detection
    • -
    • Fixed double attribute generation #54446
    • -
    • Fixed {{ handling in attributes #54451
    • -
    • More tests and speedups for DocBook document transformations
    • -
    • Fixed a really bad race like bug in xsltCopyTreeList()
    • -
    • added a documentation on the libxslt internals
    • -
    • William Brack and Bjorn Reese improved format-number()
    • -
    • Fixed multiple sort, it should really work now
    • -
    • added a --docbook option for SGML DocBook input (hackish)
    • -
    • a number of other bug fixes and regression test added as people were +
    • Fixed HTML default output detection
    • +
    • Fixed double attribute generation #54446
    • +
    • Fixed {{ handling in attributes #54451
    • +
    • More tests and speedups for DocBook document transformations
    • +
    • Fixed a really bad race like bug in xsltCopyTreeList()
    • +
    • added a documentation on the libxslt internals
    • +
    • William Brack and Bjorn Reese improved format-number()
    • +
    • Fixed multiple sort, it should really work now
    • +
    • added a --docbook option for SGML DocBook input (hackish)
    • +
    • a number of other bug fixes and regression test added as people were submitting them

    0.9.0: May 3 2001

    • lot of various bugfixes, extended the regression suite
    • -
    • xsltproc should work with multiple params
    • -
    • added an option to use xsltproc with HTML input
    • -
    • improved the stylesheet compilation, processing of complex stylesheets +
    • xsltproc should work with multiple params
    • +
    • added an option to use xsltproc with HTML input
    • +
    • improved the stylesheet compilation, processing of complex stylesheets should be faster
    • -
    • using the same stylesheet for concurrent processing on multithreaded +
    • using the same stylesheet for concurrent processing on multithreaded programs should work now
    • -
    • fixed another batch of namespace handling problems
    • -
    • Implemented multiple level of sorting
    • +
    • fixed another batch of namespace handling problems
    • +
    • Implemented multiple level of sorting

    0.8.0: Apr 22 2001

    • fixed ansidecl.h problem
    • -
    • fixed unparsed-entity-uri() and generate-id()
    • -
    • sort semantic fixes and priority prob from William M. Brack
    • -
    • fixed namespace handling problems in XPath expression computations +
    • fixed unparsed-entity-uri() and generate-id()
    • +
    • sort semantic fixes and priority prob from William M. Brack
    • +
    • fixed namespace handling problems in XPath expression computations (requires libxml-2.3.7)
    • -
    • fixes to current() and key()
    • -
    • other, smaller fixes, lots of testing with N Walsh DocBook HTML +
    • fixes to current() and key()
    • +
    • other, smaller fixes, lots of testing with N Walsh DocBook HTML stylesheets

    0.7.0: Apr 10 2001

    • cleanup using stricter compiler flags
    • -
    • command line parameter passing
    • -
    • fix to xsltApplyTemplates from William M. Brack
    • -
    • added the XSLTMark in the regression tests as well as document()
    • +
    • command line parameter passing
    • +
    • fix to xsltApplyTemplates from William M. Brack
    • +
    • added the XSLTMark in the regression tests as well as document()

    0.6.0: Mar 22 2001

    • another beta
    • -
    • requires 2.3.5, which provide XPath expression compilation support
    • -
    • document() extension should function properly
    • -
    • fixed a number or reported bugs
    • +
    • requires 2.3.5, which provide XPath expression compilation support
    • +
    • document() extension should function properly
    • +
    • fixed a number or reported bugs

    0.5.0: Mar 10 2001

    • fifth beta
    • -
    • some optimization work, for the moment 2 XSLT transform cannot use the +
    • some optimization work, for the moment 2 XSLT transform cannot use the same stylesheet at the same time (to be fixed)
    • -
    • fixed problems with handling of tree results
    • -
    • fixed a reported strip-spaces problem
    • -
    • added more reported/fixed bugs to the test suite
    • -
    • incorporated William M. Brack fix for imports and global variables as +
    • fixed problems with handling of tree results
    • +
    • fixed a reported strip-spaces problem
    • +
    • added more reported/fixed bugs to the test suite
    • +
    • incorporated William M. Brack fix for imports and global variables as well as patch for with-param support in apply-templates
    • -
    • a bug fix on for-each
    • +
    • a bug fix on for-each

    0.4.0: Mar 1 2001

    • fourth beta test, released at the same time of libxml2-2.3.3
    • -
    • bug fixes
    • -
    • some optimization
    • -
    • started implement extension support, not finished
    • -
    • implemented but not tested multiple file output
    • +
    • bug fixes
    • +
    • some optimization
    • +
    • started implement extension support, not finished
    • +
    • implemented but not tested multiple file output

    0.3.0: Feb 24 2001

    • third beta test, released at the same time of libxml2-2.3.2
    • -
    • lot of bug fixes
    • -
    • some optimization
    • -
    • added DocBook XSL based testsuite
    • +
    • lot of bug fixes
    • +
    • some optimization
    • +
    • added DocBook XSL based testsuite

    0.2.0: Feb 15 2001

    • second beta version, released at the same time as libxml2-2.3.1
    • -
    • getting close to feature completion, lot of bug fixes, some in the HTML +
    • getting close to feature completion, lot of bug fixes, some in the HTML and XPath support of libxml
    • -
    • start becoming usable for real work. This version can now regenerate +
    • start becoming usable for real work. This version can now regenerate the XML 2e HTML from the original XML sources and the associated stylesheets (in section I of the XML REC)
    • -
    • Still misses extension element/function/prefixes support. Support of +
    • Still misses extension element/function/prefixes support. Support of key() and document() is not complete

    0.1.0: Feb 8 2001

    • first beta version, released at the same time as libxml2-2.3.0
    • -
    • lots of bug fixes, first "testing" version, but incomplete
    • +
    • lots of bug fixes, first "testing" version, but incomplete

    0.0.1: Jan 25 2001

    • first alpha version released at the same time as libxml2-2.2.12
    • -
    • Framework in place, should work on simple examples, but far from being +
    • Framework in place, should work on simple examples, but far from being feature complete

    Daniel Veillard

    diff --git a/doc/python.html b/doc/python.html index 20736fff..63ba42c4 100644 --- a/doc/python.html +++ b/doc/python.html @@ -87,16 +87,16 @@ or libxslt wrappers or bindings:

    and XML::LibXSLT, a perl wrapper for libxml2/libxslt as part of the AxKit XML application server -
  • +
  • Dave Kuhlman provides and earlier version of the libxml/libxslt wrappers for Python
  • -
  • Petr Kozelka provides Pascal units to glue +
  • Petr Kozelka provides Pascal units to glue libxml2 with Kylix, Delphi and other Pascal compilers
  • -
  • Wai-Sun "Squidster" Chia provides bindings for Ruby and +
  • Wai-Sun "Squidster" Chia provides bindings for Ruby and libxml2 bindings are also available in Ruby through the libgdome-ruby module maintained by Tobias Peters.
  • -
  • Steve Ball and contributors maintains libxml2 and libxslt bindings for +
  • Steve Ball and contributors maintains libxml2 and libxslt bindings for Tcl
  • @@ -109,7 +109,7 @@ interface have not yet reached the maturity of the C API.

  • If you use an RPM based distribution, simply install the libxml2-python RPM and the libxslt-python RPM.
  • -
  • Otherwise use the libxml2-python +
  • Otherwise use the libxml2-python module distribution corresponding to your installed version of libxml2 and libxslt. Note that to install it you will need both libxml2 and libxslt installed and run "python setup.py build install" in the @@ -139,17 +139,17 @@ in that example and how is the processing done:

  • styledoc : is a libxml2 document tree. It is obtained by parsing the XML file "test.xsl" containing the stylesheet.
  • -
  • +
  • style : this is a precompiled stylesheet ready to be used by the following transformations (note the plural form, multiple transformations can resuse the same stylesheet).
  • -
  • +
  • doc : 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 !
  • -
  • +
  • result : 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 @@ -217,11 +217,11 @@ string with libxml2. Note how this stylesheet:

    • Uses a global parameter bar
    • -
    • Reference the extension function f
    • -
    • how the Namespace name "http://example.com/foo" has to be bound to a +
    • Reference the extension function f
    • +
    • how the Namespace name "http://example.com/foo" has to be bound to a prefix
    • -
    • how that prefix is excluded from the output
    • -
    • how the function is called from the select
    • +
    • how that prefix is excluded from the output
    • +
    • how the function is called from the select
    style = libxslt.parseStylesheetDoc(styledoc)
     doc = libxml2.parseDoc("<doc/>")