summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-02-28Fix a memory leak if compiled with Windows locale supportDaniel Veillard4-0/+21
Ralf Junker <ralfjunker@gmx.de> pointed out a ouple of leaks in the Windows locale support: * libxslt/xslt.c: add cleanup code for the mutex in xsltUninit() * libxslt/xsltlocale.c libxslt/xsltlocale.h: add a new cleanup function xsltFreeLocales * libxslt/extensions.c: add a call to xsltFreeLocales in xsltCleanupGlobals
2011-02-22Fix generate-id() to not expose object addressesDaniel Veillard1-5/+21
As pointed out by Chris Evans <scarybeasts@gmail.com> it's better security wise to not expose object addresses directly, use a diff w.r.t. the document root own address to avoid this * libxslt/functions.c: fix IDs generation code
2010-11-08Fix curlies support in literals for non-compiled AVTsNick Wellnhofer5-1/+21
2010-11-08Precompile patterns in xsl:numberNick Wellnhofer3-43/+41
speedup optimization, it should not change semantic at all
2010-11-08Fix some warnings in the refactored codeNick Wellnhofer2-1/+10
2010-11-08Allow whitespace in xsl:variable with selectNick Wellnhofer1-1/+17
Comments are also allowed
2010-11-08Small fixes to locale codeNick Wellnhofer1-4/+5
2010-11-08Fix bug 602515Nick Wellnhofer5-9/+22
Pattern matching with predicates
2010-11-08Adding new generated filesDaniel Veillard2-0/+73
2010-11-08Fix popping of vars in xsltCompilerNodePopNick Wellnhofer1-1/+1
Fix an off by one bug in Var pop-up in the compiler
2010-11-08Fix direct pattern matching bugNick Wellnhofer6-1/+20
and adds a test case for the problem, also adding a .gitignore cleanup
2010-11-08Get rid of specific build setup and STATIC_BINARIESDaniel Veillard4-33/+6
2010-10-12Fix a small out of tree compilation issueHao Hu1-1/+1
exsltconfig.h should be addressed differently
2010-04-12profiling: add callgraph reportStefan Kost5-31/+250
This patch also tracks who called a template and how often. Based on that the output of xsltproc --profile now also contains a gprof alike callgraph. If available posix monotonic clocks are the preferred way to get timestamps.
2010-03-17Various documentation fixes for docs on internalsC. M. Sperberg-McQueen2-59/+74
Michael pointed out a number of errors, inaccuracies or unclear points with new wording.
2010-01-13Fix python generator to not use deprecated xmllibDaniel Veillard1-63/+13
* python/generator.py: use xml.sax instead, patch based on similar fix for libvirt by Cole Robinson <crobinso@redhat.com>
2009-09-24link python module with python libraryFrederic Crozat2-1/+3
libxslt python module wasn't linked with python library * configure.in python/Makefile.am: detect and add appropriate linking flags
2009-09-24Release of libxslt-1.1.26Daniel Veillard56-144/+368
* NEWS configure.in doc/xslt.html: update for 1.1.26 * doc//*: regenerate
2009-09-24Add xsltProcessOneNode to exported symbols for lxmlDaniel Veillard3-39/+44
* doc/symbols.xml libxslt/transform.c libxslt/transform.h: exports the entry point explicitely since lxml depends on it, also fixed some white spaces problems.
2009-09-24Fix an idness generation problemDaniel Veillard1-6/+9
* libxslt/templates.c: when copying attributes coming from the stylesheet IDness was not asserted, though with xml:id this is now possible.
2009-09-20595612 Try to fix some locking problemsDaniel Veillard1-12/+22
* libxslt/extensions.c: there were still cases where the normal code path could led to trying to mtake again the extension lock go over all entry points of the module and clean things up
2009-09-18Fix a crash on misformed imported stylesheetsDaniel Veillard1-1/+1
* libxslt/preproc.c: handle the case where xsl:template parent is not an element.
2009-09-17Release of libxslt-1.1.25Daniel Veillard14-39/+344
* NEWS configure.in doc/xslt.html doc/news.html: update of version and description * doc/libxslt-api.xml doc/libxslt-refs.xml doc/libxslt.xsa libxslt/xsltwin32config.h doc/EXSLT/*: regenerated
2009-09-17Allow use of EXSLT outside XSLTMartin5-0/+308
* libexslt/exslt.h libexslt/date.c libexslt/math.c libexslt/sets.c libexslt/strings.c: provide registration function for an XPath context directly
2009-09-17Big fixes of pattern compilationsNick Wellnhofer11-182/+128
The problem is that "@node()", "attribute::node()", "child::node()" and "node()" are all handled in different code paths and only the latter works. Then, I noticed that the handling of match="child::name" is wrong. It matches the parents of <name> elements although it should be treated exactly like match="name". So the whole XSLT_OP_CHILD stuff is unneeded. I also found that xsltScanName behaves a bit strange with regard to ':' characters. It doesn't parse an XML Name like the documentation says. It's better to use xsltScanNCName instead. Another minor issue is that the parser currently allows invalid expressions like match="element*" because of lines 1745-1747 in pattern.c in trunk. * libxslt/pattern.c: fix all those problems * tests/REC/Makefile.am tests/REC/test-5.2-19* tests/REC/test-5.2-20* tests/REC/test-5.2-21*: add test cases to the regression suite
2009-09-17Support Esperanto localeNick Wellnhofer1-4/+13
* libxslt/xsltlocale.c: only affects the glibc locale code, adds the "eo" language code and also try locales without territory
2009-09-17Fix uses of xmlAddChild for error handlingDaniel Veillard1-11/+37
* libxslt/transform.c: as Daniel Benson <danielbenson@google.com> pointed out the use of xmlAddChild could lead to troubles in case of error or merging. make a wrapped xsltAddChild() and fix the existing uses.
2009-09-17Change how attributes are copied for id and speedDaniel Veillard1-268/+254
* libxslt/transform.c: change the way we copy attributes, use a function allowing id detection, and avoid an unecessary string generation/free in most cases. Also cleanup a number of space and tabs issues.
2009-09-17Detect deep recusion on function callsDaniel Veillard2-0/+13
* libxslt/xsltInternals.h libexslt/functions.c: add a function call counting in the transformation context, and test/increment/decrement in exsltFuncFunctionFunction enter and exit
2009-09-17Avoid an error in namespace generationMartin1-0/+4
* libxslt/namespaces.c: fix xsltGetSpecialNamespace fallback with uninitialized prefix string
2009-09-17Fix importing of encoding from included stylesheetsNick Wellnhofer7-4/+29
* libxslt/transform.c: process encoding like other imported output properties * tests/docs/Makefile.am tests/docs/bug-169.xml tests/general/Makefile.am tests/general/bug-169.*: add a specific regression test
2009-09-17Add a few more files to ignoreDaniel Veillard1-0/+6
2009-09-17Fix problems with embedded stylesheets and namespacesMartin6-10/+69
* libxslt/xslt.c: copy the embedded stylesheet instead of cutting it out of the source tree and make sure to copy namespaces in scope too * tests/REC/Makefile.am tests/REC/stand-2.7-[23]*: add the 2 tests case to the regression suite
2009-09-17QName parsing fix for patternsMartin1-1/+2
* libxslt/pattern.c: fix a corner case and avoid a memory leak on error
2009-09-16Crash compiling stylesheet with DTDMartin1-3/+4
* libxslt/xslt.c: when a stylesheet embbeds a DTD the compilation process could get seriously wrong
2009-09-16Fix xsl:strip-space with namespace and wildcardNick Wellnhofer11-1/+90
* libxslt/imports.c: xsl:strip-space didn't work if there is a NameTest with a namespace and a wildcard * tests/REC/Makefile.am tests/REC/test-3.4-*: add some test to the regression suite
2009-09-16Fix a problem with previous changeDaniel Veillard1-0/+1
2009-09-16Label xsltProcessOneNode as staticDaniel Veillard1-1/+1
2009-09-16Add API versioning and various cleanupsDaniel Veillard20-75/+1285
* doc/symbols.xml doc/syms.xsl doc/checkapisym.xsl libxslt/libxslt.syms: the new symbol files, checking and stylesheets, based on libxml2 ones * configure.in doc/Makefile.am libxslt/Makefile.am: modifications needed to activate the symbol versioning * doc/libxslt-api.xml doc/libxslt-refs.xml doc/EXSLT/libexslt-api.xml doc/EXSLT/libexslt-refs.xml: regenerated * libexslt/crypto.c libxslt/Makefile.am libxslt/keys.c libxslt/variables.c libxslt/xslt.c libxslt/xsltInternals.h libxslt/xsltlocale.c libxslt/xsltlocale.h: various cleanups
2009-09-08Fix a mutex deadlock on unregistered extensionsNix1-2/+6
* libxslt/extensions.c: both xsltExtModuleFunctionLookup() and xsltExtModuleRegisterDynamic() take the xsltExtMutex, but the former calls the latter
2009-08-23567192 xsltproc --output option ignore --xincludeJoachim Breitner1-0/+5
* xsltproc/xsltproc.c: the option was not activating XInclude nor passing parser flags
2009-08-21Fix redundant headers in listDaniel Veillard1-2/+0
2009-08-21134754 Configure's --with-html-dir related fixesJulio M. Merino Vidal2-36/+32
* configure.in doc/Makefile.am: fixes --with-html-dir argument handling and adds --with-html-subdir.
2009-08-20Make sure testThreads is linked with pthreadsDaniel Veillard2-2/+6
* configure.in: augment thread detection to pass THREADS_LIBS * xsltproc/Makefile.am: add THREAD_LIBS to testThreads_LDADD
2009-08-17Fix potential crash on debug of extensions SolarisBen Walton1-7/+8
* libxslt/extensions.c: avoid a printf("%s", NULL) in special circumstances
2009-08-14Improve testThreads a bitDaniel Veillard1-0/+14
* xsltproc/testThreads.c: load exslt extensions, the test module and a bit of output
2009-08-14305913 a serious problem in extensions reentrancyDaniel Veillard6-61/+239
* libexslt/exslt.c libxslt/extensions.c libxslt/extensions.h libxslt/security.c libxslt/transform.c libxslt/xslt.c: extension support use some global variables, make sure there is a Mutex to access and modify them
2009-08-14Adding a test program to check thread reentrancyDaniel Veillard5-3/+321
* xsltproc/testThreads.c: based loosely on libxml2 one, checks concurrent use of the same stylesheet and extensions reentrancy * config.h.in configure.in: we need to check for pthreads * Makefile.am xsltproc/Makefile.am: add the new program and insert in make check
2009-07-24Adding a .gitignore fileDaniel Veillard1-0/+139
2009-07-24Fix the download links for SolarisDaniel Veillard2-4/+4