1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-06 23:49:25 +03:00
Commit Graph

199 Commits

Author SHA1 Message Date
Thomas Broyer
f700e4f073 added implementation of the EXSLT - Dates and Times core functions. The
* configure.in libexslt/date.c libexslt/Makefile.am
	  libexslt/exslt.[ch] libexslt/.cvsignore: added implementation
	  of the EXSLT - Dates and Times core functions.
	  The exsltDateFormat* functions need to be reworked but it
	  works like this, even if it's quite messy.
	* tests/exslt/strings/.cvsignore: added
2001-09-12 03:52:26 +00:00
Daniel Veillard
e9f69e00c2 trying to close bug #60304 on xsl:fallback usage added a specific example
* libxslt/Makefile.am libxslt/transform.c: trying to close
  bug #60304 on xsl:fallback usage
* tests/docs/Makefile.am tests/docs/bug-60.xml
  tests/general/Makefile.am tests/general/bug-60.*: added a
  specific example in the regression tests
Daniel
2001-09-11 11:45:45 +00:00
Daniel Veillard
b6ef0b57c9 changed the test to use doc%5Ffile instead of doc%20file, this is
* tests/documents/Makefile.am tests/documents/*: changed the
  test to use doc%5Ffile instead of doc%20file, this is
  sufficient to preserve the test capacities while closing
  bug #60090
Daniel
2001-09-11 11:04:33 +00:00
Daniel Veillard
cdad73d46d close #59570 by simply not providing Norm's extension on FreeBSD. added a
* libxslt/extra.c : close #59570 by simply not providing
  Norm's extension on FreeBSD.
* tests/general tests/docs: added a couple of new entries
  in the testsuite
* libexslt/strings.c: NULL initialized a local variable
  which was tested later on.
Daniel
2001-09-11 10:47:57 +00:00
Daniel Veillard
ef34e3d586 applied fix from #60143 and rebuilt the FO test outputs Daniel
* libxslt/pattern.c tests/docbook/result/fo/*: applied fix from
  #60143 and rebuilt the FO test outputs
Daniel
2001-09-10 20:56:07 +00:00
Thomas Broyer
94c00a7753 added implementation of EXSLT - Strings. Currently implemented functins
* libexslt/Makefile.am libexslt/exslt.[ch] libexslt/strings.c:
	  added implementation of EXSLT - Strings.
	  Currently implemented functins are str:tokenize, str:align
	  str:concat and str:padding.
	* configure.in tests/exslt/Makefile.am
	  tests/exslt/strings/Makefile.am
	  tests/exslt/strings/tokenize.1.*: added a test for the
	  str:tokenize function.
2001-09-03 00:17:54 +00:00
Daniel Veillard
561909b311 added global variables cleanups to the example. mjcox pointed to some
* doc/tutorial/libxslt_tutorial.c doc/tutorial/libxslttutorial.html
  doc/tutorial/libxslttutorial.xml: added global variables cleanups
  to the example.
* tests/documents/Makefile.am: mjcox pointed to some missing files
Daniel
2001-08-29 21:00:50 +00:00
Thomas Broyer
2ed15eeb8a implemented version 3 of the exslt:node-set() function. added a test
* libexslt/common.c: implemented version 3 of the exslt:node-set()
	  function.
	* tests/exslt/common/Makefile.am
	  tests/exslt/common/node-set.3.{xml,xsl,out}: added a test
2001-08-29 13:18:03 +00:00
Daniel Veillard
45f2619024 fixed an error I propagated to nearly all Makefiles.am on Saturday Daniel
* //Makefile.am : fixed an error I propagated to nearly all
  Makefiles.am on Saturday
Daniel
2001-08-21 11:18:24 +00:00
Daniel Veillard
d025723434 use xmlXPathIsNaN() and xmlXPathIsInf() tag a potential threading problem.
* libexslt/math.c libxslt/numbers.c: use xmlXPathIsNaN() and
  xmlXPathIsInf()
* libxslt/pattern.c: tag a potential threading problem.
Daniel
2001-08-21 11:11:21 +00:00
Daniel Veillard
f89de317a2 fixed a number of small problems with Makefiles spotted by Albert Chin
* //Makefile.am : fixed a number of small problems with
  Makefiles spotted by Albert Chin
Daniel
2001-08-18 14:00:41 +00:00
Daniel Veillard
307550093f release of 1.0.2 cleaning of Makefiles pointed out by make distcheck
* Makefile.am config.h.in configure.in libxslt/xsltwin32config.h:
  release of 1.0.2
* tests/docs/Makefile.am libexslt/Makefile.am
  tests/documents/Makefile.am tests/general/Makefile.am
  xsltproc/Makefile.am: cleaning of Makefiles pointed out
  by make distcheck
Daniel
2001-08-15 13:21:46 +00:00
Daniel Veillard
6ee8beb052 trying to kill bug #58878, some associated serious cleanup in the pattern
* libxslt/pattern.c libxslt/transform.c: trying to kill bug #58878,
  some associated serious cleanup in the pattern code.
* tests/docbook/result/*: regenerated all the results for the
  docbook testsuite. Seems killing #58878 also changes the
  fo results seriously.
* tests/docs/Makefile.am tests/docs/bug-5[56].xml
  tests/general/Makefile.am tests/general/bug-5[56].*: added
  2 more tests
Daniel
2001-08-14 13:35:41 +00:00
Daniel Veillard
d4956ec17b cleaned up the code w.r.t. handling of 'non-standard' libxml element like
* libxslt/functions.c libxslt/keys.c libxslt/transform.c
  libxslt/xsltutils.h: cleaned up the code w.r.t. handling
  of 'non-standard' libxml element like namespace nodes.
* tests/docs/Makefile.am tests/docs/bug-54.xml
  tests/general/Makefile.am tests/general/bug-54.*: added a
  specific example in the regression tests
Daniel
2001-08-12 19:55:12 +00:00
Daniel Veillard
c3e6b8a663 For Norman walsh: for heriting defaulted atts from the DTD Added a few new
For Norman walsh:
* xsltproc/xsltproc.c: for heriting defaulted atts from the DTD
* tests/docs/Makefile.am tests/docs/bug-52.xml tests/docs/bug-53.xml
  tests/general/Makefile.am tests/general/bug-52.*
  tests/general/bug-53.*: Added a few new tests for recently fixed
  stuff in libxml
* tests/xmlspec/REC-xml-20001006-review.html
  tests/xmlspec/REC-xml-20001006.html: inheriting default attrs from
  DTD changed the result by adding extra attributes to the HTML output
Daniel
2001-08-07 01:14:30 +00:00
Daniel Veillard
82dd326edc this got fixed by libxml patches Applied Igor Zlatkovic Win32 Facelift
* tests/general/bug-21-.out tests/general/bug-31-.out:
  this got fixed by libxml patches
* win32/readme.msvc win32/dsp/* xsltproc/xsltproc.c
  Makefile.am libexslt/exslt.[ch] libexslt/exsltconfig.h.in
  libexslt/functions.c libexslt/math.c libxslt/win32config.h
  libxslt/xsltconfig.h.in libxslt/xsltutils.h
  libxslt/xsltwin32config.h libxslt/xsltwin32config.h.in:
  Applied Igor  Zlatkovic Win32 Facelift No.2 patch, and fixed
  a few things related to those changes.
Daniel
2001-08-03 12:26:17 +00:00
Daniel Veillard
a5b9bae515 well one need one \n after DOCTYPE the output of some tests changed, looks
* libxslt/xsltutils.c: well one need one \n after DOCTYPE
* test//*/*.out: the output of some tests changed, looks better
  actually
Daniel
2001-08-01 12:00:00 +00:00
Thomas Broyer
cbb27d0555 fixed bugs in exsltTrailingFunction and exsltLeadingFunction when passing
* libexslt/sets.c: fixed bugs in exsltTrailingFunction and
	  exsltLeadingFunction when passing an empty node-set as the
	  second argument
	* libxslt/functions.[ch]: gave priority to context-level functions
	  over extension module functions. This allows a function declared
	  with a func:function element to override an extension module
	  function for example. This is a bit hackish...
	* tests/exslt/sets/{lead,trail}ing.1.out: fixed errors. The result
	  values didn't conform to the expected values. This is a bug in
	  the EXSLT official use cases.
2001-07-31 23:38:57 +00:00
Daniel Veillard
7b60042845 fixed a serious proble is node-set was called on a nodeset fixed the rule
* libxslt/extra.c: fixed a serious proble is node-set was called
  on a nodeset
* tests//*/Makefile.am: fixed the rule to rebuild xsltproc
Daniel
2001-07-30 13:47:26 +00:00
Thomas Broyer
c560f6469c added some tests to check EXSLT conformance fixed a typo when registering
* configure.in tests/Makefile.am tests/exslt/*: added some tests
	  to check EXSLT conformance
	* libexslt/sets.c: fixed a typo when registering has-same-node
2001-07-27 02:15:58 +00:00
Daniel Veillard
93a9ef80f2 fixed an ugly problem with namespaces in templates compilation added a
* libxslt/pattern.c: fixed an ugly problem with namespaces
  in templates compilation
* tests/namespaces/tst4.*: added a specific testcase
* libxslt/transform.c: reenabled debug
Daniel
2001-07-25 20:20:57 +00:00
Darin Adler
6ab14c960e Some more generated files to ignore.
* libxslt/.cvsignore:
	* tests/XSLTMark/.cvsignore:
	* tests/extensions/.cvsignore:
	* tests/xmlspec/.cvsignore:
	Some more generated files to ignore.
2001-07-15 20:01:41 +00:00
Daniel Veillard
a476e34b2e Integrating EXSLT and cleanup:
* Makefile.am configure.in libexslt/Makefile.am:
  Integration of libexslt in the build system
* libxslt/Makefile.am libxslt/xsltproc.c libxslt/xsltutils.c
  xsltproc/Makefile.am xsltproc/xsltproc.c:
  Moved xsltproc to a separate directory, linked it to libexslt,
  and added exslt version reports to -V
* tests/*/Makefile.am: updated the path to xsltproc
* libexslt/common.c libexslt/exslt.h libexslt/exsltconfig.h.in
  libexslt/functions.c libexslt/math.c libexslt/sets.c: added
  versionning informations, some cleanup, and added documentation
  to a couple of exported functions
Daniel
2001-07-15 18:30:53 +00:00
Daniel Veillard
178e4af9c7 added Embedding Stylesheets added the test from the REC about it tried to
* FEATURES libxslt/xsltproc.c libxslt/transform.c
  libxslt/xsltInternals.h: added Embedding Stylesheets
* tests/REC/Makefile.am tests/REC/stand-2.7-1.*: added the test
  from the REC about it
* libxslt/transform.c libxslt/extra.[ch] libxslt/preproc.c:
  tried to accomodate the various (and changing) proprietary
  ways of implementing chunking.
* tests/docbook/result/xtchunk/html: now output is generated in
  ISO-8859-1
Daniel
2001-07-10 15:14:09 +00:00
Daniel Veillard
44881d780b small fix for xsl:message by Stephane GUIBOU added a specific regression
* libxslt/xsltutils.c: small fix for xsl:message by Stephane GUIBOU
* tests/documents/Makefile.am tests/documents/message.*: added
  a specific regression test
* libxslt/transform.c: fixed an infinite loop
* configure.in doc/Makefile.am: attempt to add --with-html-dir,
  this may work
Daniel
2001-07-09 20:06:35 +00:00
Daniel Veillard
399ff26ba4 fixed exclude-result-prefixes handling and how namespaces propagate from
* libxslt/transform.c libxslt/xslt.c libxslt/xsltInternals.h:
  fixed exclude-result-prefixes handling and how namespaces
  propagate from the stylesheet to the result in general, this
  is a serious cleanup.
* tests/general/bug-3[67]-inc.xsl tests/general/bug-6-.xsl
  tests/general/itemschoose.out tests/namespaces/extra.xsl
  tests/REC/test-10-1.xsl tests/REC/test-10-2.xsl
  tests/REC/test-11.2-1.xsl tests/REC/test-11.2-2.xsl
  tests/REC/test-11.2-6.xsl tests/REC/test-15-1.xsl
  tests/REC/test-16.1-1.xsl tests/REC/test-16.1-2.xsl
  tests/REC/test-5.4-1.out tests/REC/test-5.4-2.out
  tests/REC/test-5.4-3.out tests/REC/test-5.4-4.out
  tests/REC/test-7.1.1-2.out tests/REC/test-7.1.1-2.xsl
  tests/REC/test-7.1.1-3.out tests/REC/test-7.1.1-3.xsl
  tests/REC/test-7.1.1.out tests/REC/test-7.1.3.xsl
  tests/REC/test-7.3.xsl tests/REC/test-7.4.xsl
  tests/REC/test-7.6.1-1.xsl tests/REC/test-7.6.1-2.xsl
  tests/REC/test-7.6.1-3.xsl tests/REC/test-7.6.2-1.xsl:
  fixed and rechecked all the tests where the namespace
  propagation was wrong either taht the rules were not applied
  correctly or that superfluous namespaces were declared in the
  stylesheets
Daniel
2001-07-09 13:59:13 +00:00
Daniel Veillard
451c656c3b Norm pointed out that element-available() didn't work, implemented it
* libxslt/extra.c libxslt/functions.c libxslt/transform.[ch]
  libxslt/variables.h: Norm pointed out that element-available()
  didn't work, implemented it
* tests/extensions/Makefile.am tests/extensions/list.*: added
  a test for all registered xslt element, function and default
  extensions.
Daniel
2001-07-08 20:21:05 +00:00
Daniel Veillard
ed83d63ecc added a test for URI-escaping on document() input Daniel
* tests/documents/Makefile.am 'tests/documents/doc file.xml'
  tests/documents/docfile.xml tests/documents/test.result
  tests/documents/test.xml tests/documents/test.xsl:
  added a test for URI-escaping on document() input
Daniel
2001-07-08 18:45:45 +00:00
Daniel Veillard
c2dc2ac6eb added a couple of regression tests for bugs posted on the list Daniel
* tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-49-* tests/docs/bug-49-*
  tests/general/bug-50-* tests/docs/bug-50-*: added a
  couple of regression tests for bugs posted on the list
Daniel
2001-07-08 14:35:46 +00:00
Daniel Veillard
6744bd096b - libxslt/templates.c libxslt/transform.c libxslt/transform.h
libxslt/variables.c: big cleanup on the way templates or
  template fragments are processed, cleanup of stack building
- tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-4[1-8]-* tests/docs/bug-4[1-8]-*: added a
  series of regression test for the variable/params lookups
- libxslt/transform.c libxslt/xsltutils.[ch] libxslt/xsltproc.c:
  started working on profiling code, there is just invocation counting
  yet but the framework is in place.
Daniel
2001-07-07 17:05:02 +00:00
Daniel Veillard
78e30d87ad added a specific regression test for the variable scope within templates
* tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-40-* tests/docs/bug-40-*: added a specific
  regression test for the variable scope within templates problem
Daniel
2001-07-07 09:21:53 +00:00
Daniel Veillard
5686af1088 - FEATURES: updated - libxslt/xslt.c libxslt/xsltInternals.h: added
- FEATURES: updated
- libxslt/xslt.c libxslt/xsltInternals.h: added exclude-result-prefix
  support
- tests/REC/Makefile.am tests/REC/test-7.1.1-[23]*: added a couple
  of specific tests
- tests/xmlspec/REC-xml-20001006-review.html: seems this changed
  something there, not visually perceptible
Daniel
2001-07-05 22:43:40 +00:00
Daniel Veillard
4f1f2c504d - tests/docbook/result/: the change in libxml affected the
output of the Docbook tests (of course it was detected on
  a DocBook example)
Daniel
2001-07-05 20:51:51 +00:00
Daniel Veillard
0bf2872d79 updated added cdata-section-elements added 2 tests from the REC Daniel
* FEATURES: updated
* libxslt/transform.c: added cdata-section-elements
* tests/REC/Makefile.am tests/REC/test-16.1-*: added 2 tests from the REC
Daniel
2001-07-05 13:15:16 +00:00
Daniel Veillard
15ea351154 updated do not dump document for which there have been no generated
* FEATURES: updated
* libxslt/xsltutils.c: do not dump document for which there have
  been no generated content
* tests/multiple/result.xml tests/namespaces/extra2.out: fixed
  test output accordingly
* libxslt/transform.c libxslt/preproc.c: added xsl:fallback support
* tests/REC/Makefile.am tests/REC/test-15-1.*: xsl:fallback test
* tests/xmlspec/Makefile.am tests/docbook/Makefile.am: cleanups
Daniel
2001-07-05 08:59:37 +00:00
Daniel Veillard
ffc52efd1d - libxslt/extension.[ch] libxslt/extra.[ch] libxslt/xsltInternals.h
libxslt/transform.c libxslt/functions.c: Added the extension API
  suggested by Thomas Broyer, this should allow implementation of
  EXSLT for example.
- libxslt/extra.[ch]: added a fake xsltFunctionLocalTime() in Norm's
  CVS extension namespace to avoid complaints, some cleanup
- configure.in tests/Makefile.am tests/extensions/*: added a test
  for new modules testing both elements and functions registration
Daniel
2001-07-04 13:22:40 +00:00
Daniel Veillard
599b6b9743 Lots of cleanup work toward betted multiple document output handling:
* libxslt/transform.[ch] libxslt/xslt.c libxslt/xsltInternals.h:
  added a new interface xsltRunStylesheet() for a more flexible
  handling of the output and trying to adhere to xsl:document
  filename generation semantic if one knows the URL of the output,
  also add IObuf capacity and SAX for output but is currently not
  implemented.
* libxslt/xsltproc.c: added a -o or --output filename argument
  to test xsltRunStylesheet() or provide a base when generating
  multiple outputs
* tests/docbook/Makefile.am tests/docbook/result/xtchunk/html/*:
  updated tests to add DocBook xt:document based chunking
* tests/multiple/Makefile.am: cleaned up the makefile a bit
* tests/multiple/out/*.html: the new xt:document now generate
  the DOCTYPE if available as is the case for HTML
Daniel
2001-06-25 10:58:40 +00:00
Daniel Veillard
1872dd7884 updated to docbook-xsl-1.4, regenerated results Daniel
* test/docbook: updated to docbook-xsl-1.4, regenerated results
Daniel
2001-06-23 17:06:54 +00:00
Daniel Veillard
9c25652524 closing bug #56517, fixed a number of problems in the patterns
* libxslt/pattern.c: closing bug #56517, fixed a number of
  problems in the patterns compilations, priorities and debug
* libxslt/transform.c: improved the template debug message
* tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-39-* tests/docs/bug-39-*: added a specific
  regression test for #56517
Daniel
2001-06-23 12:24:49 +00:00
Daniel Veillard
bf7c97febe Don't bother me with generated files, Daniel 2001-06-22 14:36:47 +00:00
Daniel Veillard
134706d5da Removed the result of the multiple tests, it's generated stuff, Daniel 2001-06-22 14:35:03 +00:00
Daniel Veillard
5cb133256f added XHTML and XSL FO to the regression tests added XHTML stylesheets
* tests/docbook/Makefile.am: added XHTML and XSL FO to the
  regression tests
* tests/docbook/xhtml/*: added XHTML stylesheets
* tests/docbook/fo/*: added XSL FO stylesheets
* tests/docbook/result/xhtml/*: added XHTML results
* tests/docbook/result/fo/*: added XSL FO results
Daniel
2001-06-19 14:16:56 +00:00
ÉRDI Gergo
b58357db78 Adding generated files to .cvsignore -- Hope you don't mind, Daniel 2001-06-18 21:02:58 +00:00
Daniel Veillard
59d1ddb347 - libxslt/namespaces.[ch]: added a single namespace def copy
operation xsltCopyNamespace(). cleaned up xsltCopyNamespaceList()
- libxslt/transform.c: cleaned up xsltCopyNode to cope with
  any kind of input nodes.
- libxslt/variables.c: checked and closed the last TODO about
  namespace propagation
- tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-38-* tests/docs/bug-38-*: added a specific
  regression test for #56115
Daniel
2001-06-16 21:33:05 +00:00
Daniel Veillard
4f38e9519c - libxslt/variables.c: bug #56267 was still not fixed, forgot
to remove the old code
- tests/general/bug-37-.xsl: wrong reference to 36 fixed, this does
  the test for good
Daniel
2001-06-16 13:25:56 +00:00
Daniel Veillard
4bfa9d3e81 - libxslt/variables.c: fixed bug #56267, namespaces must
be propagated when evaluating local variables.
- tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-37-* tests/docs/bug-37-*: added a specific
  regression test for #56267
Daniel
2001-06-15 22:33:52 +00:00
Daniel Veillard
2e5b47750a - libxslt/preproc.c: removed a warning on xsl:transform
- tests/docs/Makefile.am tests/docs/array.xml tests/general/Makefile.am
  tests/general/array.out tests/general/array.xsl: added a new
  test fround in xsl-dev
Daniel
2001-06-14 08:09:43 +00:00
Daniel Veillard
bb3b8786f9 - tests/docbook/result/html/*.html tests/XSLTMark/xslbench[12].out
tests/xmlspec/REC-xml-20001006*.html: the changes to the HTML
  serializer of libxml impacted the result of some tests. Checked
  that the XML REC renders identically.
Daniel
2001-06-13 21:15:25 +00:00
Daniel Veillard
8e0fa46829 - libxslt/variables.c: fixed bug #55670, namespaces must
be propagated when evaluating global variables.
- tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-36-* tests/docs/bug-36-*: added a specific
  regression test for #55670
Daniel
2001-06-11 11:44:36 +00:00
Daniel Veillard
cf61bf60f1 - libxslt/transform.c: closed bug #55723, problem was due to
a limitation of xsltGetNamespace() when the insertion point
  is the document.
- tests/docs/Makefile.am tests/general/Makefile.am
  tests/general/bug-35-* tests/docs/bug-35-*: added a specific
  regression test for #55723
Daniel
2001-06-10 19:54:50 +00:00