summaryrefslogtreecommitdiff
path: root/libexslt/dynamic.c
AgeCommit message (Collapse)AuthorFilesLines
2022-09-13Imported Upstream version 1.1.35upstream/1.1.35DongHun Kwak1-22/+15
2019-11-12Imported Upstream version 1.1.34upstream/1.1.34DongHun Kwak1-16/+18
2017-12-04Imported Upstream version 1.1.32upstream/1.1.32DongHun Kwak1-1/+1
Change-Id: I03b39e92b2b7898e9a34a1e240722003e7d51cd8 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
2017-10-17Imported Upstream version 1.1.30_rc1upstream/1.1.30_rc1DongHun Kwak1-19/+7
Change-Id: Ie087e3508369ac612459f31961addc691f2302c1 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
2016-06-22Imported Upstream version 1.1.29upstream/1.1.29DongHun Kwak1-2/+19
Change-Id: I7d894ba27f8f8e886dbcece3bb3df8e69059cae9 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
2012-09-12Big space and tabs cleanupDaniel Veillard1-5/+5
Remove spaces followed by tabs, and space and tabs at the end of lines
2007-11-13After discussion on Bugzilla with Peter Pawlowski, added same code forWilliam M. Brack1-6/+19
* libexslt/common.c, libexslt/dynamic.c: After discussion on Bugzilla with Peter Pawlowski, added same code for preventing deletion of function result during garbage collection (see bug #495995). svn path=/trunk/; revision=1449
2006-07-14Committing again, since I forgot to switch from win to linux linebreaks inKasimier T. Buchcik1-274/+274
* libxslt/attributes.c libxslt/documents.c libxslt/functions.c libxslt/keys.c libxslt/namespaces.c libxslt/pattern.c libxslt/preproc.c libxslt/templates.c libxslt/templates.h libxslt/transform.c libxslt/variables.c libxslt/xslt.c libxslt/xsltInternals.h libxslt/xsltutils.c libxslt/xsltutils.h libexslt/common.c libexslt/dynamic.c libexslt/functions.c libexslt/strings.c: Committing again, since I forgot to switch from win to linux linebreaks in the files.
2006-07-14Refactored xsltValueOf(). Changed to use xmlXPathCastToString() directly,Kasimier T. Buchcik1-274/+274
* libxslt/attributes.c libxslt/documents.c libxslt/functions.c libxslt/keys.c libxslt/namespaces.c libxslt/pattern.c libxslt/preproc.c libxslt/templates.c libxslt/templates.h libxslt/transform.c libxslt/variables.c libxslt/xslt.c libxslt/xsltInternals.h libxslt/xsltutils.c libxslt/xsltutils.h libexslt/common.c libexslt/dynamic.c libexslt/functions.c libexslt/strings.c: Refactored xsltValueOf(). Changed to use xmlXPathCastToString() directly, rather than creating an intermediate object with xmlXPathConvertString(). This now does not add a text-node to the result if the string is empty (this has impact on serialization, since an empty text-node is serialized as <foo></foo>, and now it will be serialized as <foo/>). Refactored other functions in transform.c: Mostly code cleanup/restructuring. Minimized number of function variables for instruction which eat up function stack memory when recursing templates (xsltIf(), xsltChoose(), xsltApplyTemplates(), xsltCallTemplate()). Changed XSLT tests to use xmlXPathCompiledEvalToBoolean(). Implemented redefinition checks at compilation-time and eliminating them at transformation time in the refactored code paths. Introduced the field @currentTemplateRule on xsltTransformContext to reflect the "Current Template Rule" as defined by the spec. NOTE that ctxt->currentTemplateRule and ctxt->templ is not the same; the former is the "Current Template Rule" as defined by the XSLT spec, the latter is simply the template struct being currently processed by Libxslt. Added XML_COMMENT_NODE and XML_CDATA_SECTION_NODE to the macro IS_XSLT_REAL_NODE. Misc code cleanup/restructuring and everything else I already forgot. Refactored lifetime of temporary result tree fragments. Substituted all calls to the now deprecated xsltRegisterTmpRVT() for the new xsltRegisterLocalRVT(). Fragments of xsl:variable and xsl:param are freed when the variable/pram is freed. Fragments created when evaluating a "select" of xsl:varible and xsl:param are also bound to the lifetime of the var/param. EXSLT's func:function now uses the following functions to let take care the transformation's garbage collector of returned tree fragments: xsltExtensionInstructionResultRegister(), xsltExtensionInstructionResultFinalize() Fixes: #339222 - xsl:param at invalid position inside an xsl:template is not catched #346015 - Non-declared caller-parameters are accepted #160400 - Compiles invalid XSLT; unbound variable accepted #308441 - namespaced parameters become unregistered #307103 - problem with proximity position in predicates of match patterns #328218 - problem with exsl:node-set() when converting strings to node sets #318088 - infinite recursion detection #321505 - Multiple contiguous CDATA in output #334493 - "--param" option does not have root context #114377 - weird func:result/xsl:variable/exsl:node-set interaction #150309 - Regression caused by fix for 142768
2005-07-10try to avoid generating conflicts applied patch from Mark Vakoc toDaniel Veillard1-0/+177
* libxslt/xsltwin32config.h*: try to avoid generating conflicts * libexslt/dynamic.c: applied patch from Mark Vakoc to implement dyn:map * configure.in tests/exslt/Makefile.am tests/exslt/dynamic/*: added test for dyn:map to the regression suite Daniel
2003-08-18applied patch from Mikhail Grushinskiy for compilation with MingW compilerDaniel Veillard1-1/+1
* xsltproc/Makefile.am libxslt/libxslt.h libxslt/numbersInternals.h libexslt/*.c configure.in: applied patch from Mikhail Grushinskiy for compilation with MingW compiler on Windows. Daniel
2002-05-31turned a function static applied patch from Mark Vadoc DanielDaniel Veillard1-1/+2
* libexslt/dynamic.c: turned a function static * libxslt/win32config.h: applied patch from Mark Vadoc Daniel
2002-05-30applied a patch from Mark Vakoc to implement the EXSLT objectDaniel Veillard1-0/+96
* win32/Makefile.msvc libexslt/Makefile.am libexslt/date.c libexslt/dynamic.c libexslt/exslt.c libexslt/exslt.h: applied a patch from Mark Vakoc to implement the EXSLT object dyn:evaluate(string) extension function, and a small fix to date.c Daniel