1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-11-08 11:02:18 +03:00
Commit Graph

422 Commits

Author SHA1 Message Date
Daniel Veillard
27b74c0513 - tests/numbers/Makefile.am: fixed the EXTRA stuff
daniel
2001-02-06 09:56:08 +00:00
Daniel Veillard
15750d4bbb - Copyright IPR Makefile.am: added some wording and a rewrite
of the W3C IPR but without giving Copyright rights to W3C,
  should suit everybody
Daniel
2001-02-05 21:04:31 +00:00
Daniel Veillard
d3faa0e17a Starting doing some bulk testing and transformations:
- FEATURES: updated, added mode support for templates
- pattern.[ch] transform.c xslt.c xsltInternals.h: added mode
  support for templates
- templates.c variables.c: simple fixes
- xslt.c: added a separate DEBUG_BLANKS debug class disabled
- xsltproc.c: added option -timing
- xsltutils.c: seem I forgot to add encoding support in output...
- configure.in tests/Makefile.am tests/xmlspec/*: added a test
  consisting of reformatting the XML REC with the xmlspec XSLT,
  heavy !
Daniel
2001-02-05 18:29:06 +00:00
Bjorn Reese
ff49d8caa6 *** empty log message *** 2001-02-05 17:44:41 +00:00
Bjorn Reese
002b574439 Fixed decimal-point error 2001-02-04 18:39:39 +00:00
Bjorn Reese
16bad89954 Number formatting - FEATURES: updated - numbers.c: handles actual number
Number formatting
- FEATURES: updated
- numbers.c: handles actual number formatting for both xsl:number and
  the format-number extension function.
- function.c: formatting moved to numbers.c
- transform.c: added xsl:number
- xslt.c: minor memory leak removed
- Makefile.am: added numbers.c and numbersInternals.h
Bjorn
2001-02-04 16:47:37 +00:00
Daniel Veillard
2eaf99b197 A bit of debug, regenerated the docs:
- TODO: updated
- doc/html/*.html updated
- doc/libxslt.sgml: added new modules
- libxslt/pattern.c: fix loop on hash clashes.
Daniel
2001-02-03 20:51:46 +00:00
Daniel Veillard
aedfad9ba4 Lots of tests/testing and pattern support should be decent now:
- FEATURES: updated
- imports.c: bugfix
- pattern.c: lots of changes to make most patterns work
- templates.[ch]: added xsltEvalXPathPredicate() for predicate testing
- transform.c: cleanup and attribute patterns testing
- xslt.c: added xsltFreeStylesheetList() and now cleanup
  the imports
- tests/REC/test-2.3* tests/REC/test-2.6.2*: more tests
- tests/REC/test-5.2-*: 18 pattern tests from the spec, all should
  work now.
Daniel
2001-02-03 15:27:12 +00:00
Daniel Veillard
0726423c0f And most of this is simply untested, yet...:
- FEATURES: updated
- transform.c: added xsl:element support
- namespaces.[ch]: added xsltGetSpecialNamespace()
- attributes.c: added xsl:attribute namespace support.
Daniel
2001-02-02 10:20:16 +00:00
Daniel Veillard
22fc899b2d Work on implementing import support:
- libxslt/Makefile.am libxslt/imports.[ch]: new module to
  implement import cascade lookups and traversal
- libxslt/attributes.c libxslt/namespaces.c libxslt/pattern.[ch]
  libxslt/transform.c libxslt/xslt.c libxslt/xsltInternals.h:
  started coding the import cascade lookup in the places needed,
  probably incomplete.
Daniel
2001-02-01 20:01:42 +00:00
Daniel Veillard
31a0ef65c6 - libxslt/xsltInternals.h libxslt/xslt.h: started implementing
xsl:include and xsl:import, untested
Daniel
2001-02-01 17:28:26 +00:00
Daniel Veillard
1e99c95969 Added more test stuff and tested xsl:choose:
- FEATURES: updated choose/when/otherwise added
- libxslt/transform.c: plugged choose in
- configure.in tests/Makefile.am tests/REC/Makefile.am
  tests/docs/Makefile.am tests/docs/items.xml tests/general/Makefile.am
  tests/general/itemschoose.*: started adding a more generic
  infrastructure for testing.
Daniel
2001-02-01 13:57:07 +00:00
Daniel Veillard
96364c3698 No sleep :-(, still stuck in (test/debug/patch) loop:
- tests/REC/test-11*: added more tests
- libxslt/transform.c libxslt/variables.c: fixing bugs raised by
  said tests
Daniel
2001-02-01 04:38:30 +00:00
Daniel Veillard
b2e216a7f2 Test/debug/patch cycle:
- tests/REC/test-[9-10]*: added more tests
- tests/REC2/html.xml libxslt/xsltutils.c libxslt/transform.c:
  fixed sorting
Daniel
2001-01-31 20:45:01 +00:00
Daniel Veillard
92326d3c7d Still stuck in the (more tests/more debug/more) fixes loop:
- tests/REC/test-[7-9]*: added more tests
- libxslt/templates.c libxslt/transform.c libxslt/variables.c:
  fixing bugs raised by said tests, cleaned up the way ctxt->xpathctxt
  is allocated, overall cleanup.
Daniel
2001-01-31 18:28:14 +00:00
Daniel Veillard
48705af02b The add test/debug loop ges on:
- tests/REC/test-7.*: added more tests
- libxslt/pattern.c libxslt/templates.c libxslt/transform.c:
  fixing bugs raised by said tests
Daniel
2001-01-31 13:27:40 +00:00
Daniel Veillard
598bfacb27 Testing/debugging: - tests/REC/test-7.*: added more tests -
Testing/debugging:
- tests/REC/test-7.*: added more tests
- libxslt/namespaces.[ch] libxslt/pattern.c libxslt/attributes.c
  libxslt/templates.c libxslt/transform.c libxslt/xslt.c: fixing bugs
  raised by said tests
Daniel
2001-01-30 18:00:24 +00:00
Daniel Veillard
48a443da0a Boring task of starting doing basic testsuite:
- TODO: updated
- configure.in tests/Makefile.am tests/REC/*: started adding
  some regression tests based from fragments of spec examples
- libxslt/transform.c: fixed a problem on namespace generation
Daniel
2001-01-30 14:19:41 +00:00
Daniel Veillard
dfcbad530f One more day of hacking:
- FEATURES: updated
- tests/numbers/Makefile.am tests/numbers/format-number.*
  tests/Makefile.am configure.in: added number formattting
  test from Bjorn
- libxslt/attributes.[ch]: separated attribute support, started
  add support for attribute-sets
- libxslt/functions.[ch]: update for number and formatting
  from Bjorn
- libxslt/transform.c libxslt/xslt.c libxslt/xsltInternals.h:
  cleanups updates, etc ...
Daniel
2001-01-29 17:44:52 +00:00
Daniel Veillard
dfeeb7bf75 Added support for copy-of:
- FEATURES: updated
- libxslt/transform.c: added copy-of support
- libxslt/xsltutils.[ch]: added xsltDocumentSortFunction()
Daniel
2001-01-28 23:55:20 +00:00
Daniel Veillard
4987216433 Boring stuff for a Sunday evening:
- FEATURES TODO: updates
- libxslt/xsltutils.[ch] libxslt/xsltInternals.h libxslt/xsltutils.h:
  added xsl:message
Daniel
2001-01-28 20:47:06 +00:00
Daniel Veillard
fe557f63a6 Work done on namespace support:
- FEATURES TODO: updates
- libxslt/namespaces.[ch] libxslt/templates.c libxslt/transform.c
  libxslt/xslt.c libxslt/xsltInternals.h: added support for
  namespace aliases and cleaned up the overall namespace related
  code. This materialize as a new module.
Daniel
2001-01-28 16:27:44 +00:00
Daniel Veillard
31de2205b1 - configure.in libxslt.spec.in: changes needed for libxml2-devel
changes
Daniel
2001-01-28 07:42:17 +00:00
Daniel Veillard
f68ebaac6d Fixed small dep prob on the spec, Daniel 2001-01-27 10:12:00 +00:00
Daniel Veillard
477ac53c2a - libxslt.spec.in doc/xslt.html: updating doc and trying to add
it to the RPM.
Daniel
2001-01-27 10:01:50 +00:00
Daniel Veillard
358f828370 *** empty log message *** 2001-01-27 10:00:01 +00:00
Daniel Veillard
1509d3b156 on-line update, Daniel 2001-01-26 23:44:58 +00:00
Daniel Veillard
8306beddd6 on-line update, Daniel 2001-01-26 22:49:15 +00:00
Daniel Veillard
d9af8cd264 Fixed images, Daniel 2001-01-26 21:40:36 +00:00
Daniel Veillard
ed85c17b6a Too tired to do some code, prepared documentation:
- Makefile.am configure.in doc/Makefile.am: added a doc subdir
  and the rules to generates the makefiles.
- doc/libxslt.sgml doc/xslt.html: very first version of the manual
- doc/html/*.html : autogenerated documentation
- libxslt/xsltInternals.h: fixed a typedef wich was breaking gtk-doc
Daniel
2001-01-26 21:32:59 +00:00
Daniel Veillard
6256442995 xsltGenerateIdFunction() small patch Daniel
* libxslt/functions.c: xsltGenerateIdFunction() small patch
Daniel
2001-01-26 20:49:34 +00:00
Daniel Veillard
6232ed7d6e Hack, hack, hack ... Mostly adding functions:
- FEATURES TODO README INSTALL: updated
- libxslt/xslt.h: added URL and version/vendor :-)
- libxslt/transform.c: fixed a problem in xsl:attribute, removed
  attempt to support older libxml2 version.
- libxslt/variables.h libxslt/xsltInternals.h: update to structures
  and macros to add/register new document created by document()
- libxslt/functions.c: implemented current(), unparsed-entity-uri()
  system-property(), element-available() and function-available().
  A crippled version of document() has been added too.
Daniel
2001-01-25 18:51:41 +00:00
Daniel Veillard
a7da804741 - functions.[ch]: Bjorn Reese <breese@mail1.stofanet.dk> provided
number formatting !!!
- acconfig.h config.h.in configure.in libxslt/Makefile.am
  tests/Makefile.am; added testing for mathematical functions,
  fixed make test(s)
- FEATURES: updated
Daniel
2001-01-25 11:16:26 +00:00
Daniel Veillard
b6f493448e Lotsa improvement and fixes:
- libxslt/xsltInternals.h libxslt/pattern.c: fixed problems
  with non-named rules (*, ...) added accelerators
- libxslt/templates.[ch]: added xsltEvalTemplateString()
  and xsltEvalAttrValueTemplate() high level functions
- libxslt/transform.c: fixed the part where attributes
  had to be looked at as templates, added comment and
  PI generation
- TODO FEATURES: updated to reflect the new state
Daniel
2001-01-24 16:05:44 +00:00
Daniel Veillard
d6deccfda5 Set-up framework for XSLT functions:
- libxslt/functions.[ch] Makefile.am: added new module functions
  with templates for the XSLT functions.
- libxslt/variables.h templates.c: added registrations of new
  functions when an XPath context is created
Daniel
2001-01-24 04:36:44 +00:00
Daniel Veillard
fd72be7739 That part is not very fun:
- tests/Makefile.am: cleanup
- libxslt/pattern.c: should support most of the patterns now
  except ID/Key and maybe some namespace checks when having
  a default namespace
- TODO: updated
Daniel
2001-01-23 16:27:12 +00:00
Daniel Veillard
583e780787 Preparing for a not too distant alpha release:
- Makefile.am libxslt.spec.in tests/REC1/Makefile.am
  tests/REC2/Makefile.am: updated the makefiles and spec files to
  add tests, and the FEATURES file to the RPM
Daniel
2001-01-23 14:00:42 +00:00
Daniel Veillard
cad80ff875 Setup stuff: - Makefile.am libxslt.spec.in libxslt/Makefile.am
Setup stuff:
- Makefile.am libxslt.spec.in libxslt/Makefile.am tests/Makefile.am:
  prepared the Makefiles and spec files for a first release.
- COPYING.LIB: added LGPL Licence
Daniel
2001-01-22 22:41:32 +00:00
Daniel Veillard
c35194efba I like receiving patches before the 0.0 release :-)
- libxslt/transform.c: applied cleanup patch from Bjorn Reese
  <breese@mail1.stofanet.dk>
Daniel
2001-01-22 22:15:34 +00:00
Daniel Veillard
6db2425bdb CFirst try to make a spec file, Daniel 2001-01-22 19:25:37 +00:00
Daniel Veillard
4ca88e820a New examples, new bugs:
- libxslt/xsltproc.c: avoid segfault when stylesheet is inproper
- libxslt/transform.c: add support for "*" to strip and preserve
  space.
Daniel
2001-01-22 18:39:41 +00:00
CET 2001 Daniel Veillard
759a316932 updated added with alist of what's in and what's not fixed top level Param
Mon Jan 22 15:30:19 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* TODO: updated
	* FEATURES: added with alist of what's in and what's not
	* libxslt/xslt.c: fixed top level Param and Variable stuff

Mon Jan 22 11:46:44 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* xsltproc.c: removed bug
	* tests/REC2/html.xml: added newline after doctype
	* libxslt/variables.[ch] libxslt/xsltInternals.h: added param
	  support, result tree fragment support (requires just commited
	  extensions to libxml2 XPath !!!)
	* transform.c: added call-template, with-param support
	* libxslt/pattern.[ch]: xsltFindTemplate() needed for call-template
	* TODO: updated, added a DONE section and started migrating stuff :-)

Sun Jan 21 12:03:16 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* Makefile.am tests/Makefile.am tests/REC1/Makefile.am
	  tests/REC2/Makefile.am tests/REC2/html.xml: added tests target
	  too, added the HTML output test
	* libxmls/xsltutils.c: added HTML output
	* libxslt/xslt.c: check version on literal result used as templates
	* libxslt/transform.c: fixed an error in VERSION number
	* libxslt/templates.c: make sure generated nodes have doc and
	  parent properly set

Sat Jan 20 23:35:07 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/Makefile.am libxslt/template.[ch]: added a template
	  specific module. Added attribute value template, at least in
	  one spot.
	* tests/REC2/Makefile.am tests/REC2/svg.xml: the SVG test from
	  the spec now works too.
	* libxslt/variables.c: fixed the debug
	* libxslt/xslt.c: fixed an ugly uninitialized variable
	* libxslt/transform.c: now using attr template processing

Sat Jan 20 17:59:20 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/transform.c libxslt/variables.[ch] libxslt/xslt.c
	  libxslt/xsltInternals.h libxslt/xsltutils.h: changed a few
	  structure to add an execution stack with variables. Tree
	  valued variables still missing.
	* TODO: updated

Fri Jan 19 13:16:57 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.c: check version on stylesheets
	* libxslt/xslt.c libxslt/xsltInternals.h libxslt/variables[.ch]:
	  started adding variables interfaces and modules.

Thu Jan 18 16:08:38 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.c: added support for disable-output-escaping
	  will need libxml version > 20211
	* libxslt/transform.c: cleanup
	* libxslt/xsltutils.[ch]: added output functions
	* libxslt/xsltproc.c: reuse the output function
	* tests/REC2/Makefile.am tests/REC2/vrml.xml: added VRML output
	  test

Wed Jan 17 21:03:01 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/transform.c libxslt/xslt.c: avoiding some problems
	  with blank node stripping when not allowed.

Wed Jan 17 20:15:40 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/transform.c: modified apply-templates processing
	  added select and sort support support.

Wed Jan 17 17:45:20 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* TODO: guess what, it's growing :-(
	* configure.in: setup hacking values when compiling in my
	  own environment.
	* libxslt/transform.c libxslt/xsltutils.[hc]: added a first
	  very rudimentary version of xsl:sort

Wed Jan 17 14:25:25 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* TODO: more stuff
	* libxslt/transform.c: context position and size in for-each
	* libxslt/xsltutils[ch] libxslt/makefile.am: added the util module
	  and put Error and Debug routines
	* libxslt/xslt.c libxslt/transform.c libxslt/pattern.c: switched
	  to use the Debug calls, cleanup
	* libxslt/xsltproc.c: added -v to enable debug printing

Tue Jan 16 17:17:17 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* TODO: started filling it :-(
	* libxslt/pattern.c: should now at least compile the full
	  set of patterns authorized. Default priorities added.
	* libxslt/transform.c: a bit more work and cleanup.

Mon Jan 15 15:34:17 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* TODO: started adding in there :-(

Mon Jan 15 15:31:41 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* transform.c, xslt.c, xsltproc.c: lots of fixes, added
	  support of xslt:if and xslt:attribute, need libxml2 interfaces
	  present only in CVS.

Sat Jan 13 23:26:21 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* test/Makefile.am test/REC*/Makefile.am: added first test
	* libxslt/pattern.c libxslt/transform.c libxslt/xslt.c:
	  cleanup of nodes at reading of stylesheet, added support
	  for xsl:for-each and fixed a few recursion bugs

Fri Jan 12 22:33:07 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* pattern.c, xslt.c: removed debug
	* transform.c: added value-of, seems to handle the first
	  REC example correctly

Fri Jan 12 18:34:01 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* transform.c, xsltproc.c: small fight with spaces and formatting
	  may need a revisit later but looks pretty good right now.

Fri Jan 12 13:43:30 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* transform.c: basic processing in place
	* xsltInternals.h: exported one xslt.c function

Thu Jan 11 21:10:59 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/transform.[ch] Makefile.am: started adding the
	  transformation module
	* pattern.[ch] xslt.c: more work...

Thu Jan 11 14:02:03 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/pattern.c: started adding xsltTestCompMatch()

Wed Jan 10 20:44:30 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/pattern.c: more work on parsing selectors

Wed Jan 10 16:29:41 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt*: completeted the structures
	* libxslt/pattern.[ch]: started adding code to precompile patterns
	  and do the lookup
	* libxslt/makefile.am: added the new files

Mon Jan  8 19:55:18 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.c : small cleanup
	* configure.in libxslt/xsltconfig.h.in: add memory debug and
	  mechanism for compile-time options

Sun Jan  7 22:53:12 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.[ch]: started parsing templates

Sun Jan  7 19:50:02 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.[ch]: started parsing stylesheet xsl:stylesheet

Sun Jan  7 16:11:42 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.[ch] libxslt/xsltInternals.h libxslt/xsltproc.c:
	  very early coding

Sun Jan  7 15:10:54 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* configure.in Makefile.am AUTHORS NEWS autogen.sh config.h.in
	  libxslt/Makefile.am tests/Makefile.am:
	  Created the library framework, imported it into the GNOME CVS base
	* INSTALL: added a small instruction file.

Sun Jan  7 13:51:30 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* libxslt/xslt.[ch] libxslt/xsltInternals.h libxslt/xsltproc.c:
	  first steps toward building the framework

Sun Jan  7 12:22:13 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* NOTES: added notes taken while reading the spec.

Fri Jan  5 11:34:12 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* test/REC1 test/REC2: added examples from the XSLT REC

Fri Jan  5 11:14:29 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>

	* README: basic informations
	* Changelog: created
2001-01-22 14:31:59 +00:00
Daniel Veillard
b94fc73a64 Furious hacking session, making serious progresses, the hardest stuff
now seems in place !!!
* xsltproc.c: removed bug
* tests/REC2/html.xml: added newline after doctype
* libxslt/variables.[ch] libxslt/xsltInternals.h: added param
  support, result tree fragment support (requires just commited
  extensions to libxml2 XPath !!!)
* transform.c: added call-template, with-param support
* libxslt/pattern.[ch]: xsltFindTemplate() needed for call-template
* TODO: updated, added a DONE section and started migrating stuff :-)
Daniel
2001-01-22 10:52:35 +00:00
Daniel Veillard
935ed1d25f More work, cleanups, HTML output:
- Makefile.am tests/Makefile.am tests/REC1/Makefile.am
  tests/REC2/Makefile.am tests/REC2/html.xml: added tests target
  too, added the HTML output test
- libxmls/xsltutils.c: added HTML output
- libxslt/xslt.c: check version on literal result used as templates
- libxslt/transform.c: fixed an error in VERSION number
- libxslt/templates.c: make sure generated nodes have doc and
  parent properly set
Daniel
2001-01-21 11:07:02 +00:00
Daniel Veillard
007037dd75 - libxslt/Makefile.am libxslt/template.[ch]: added a template
specific module. Added attribute value template, at least in
  one spot.
- tests/REC2/Makefile.am tests/REC2/svg.xml: the SVG test from
  the spec now works too.
- libxslt/variables.c: fixed the debug
- libxslt/xslt.c: fixed an ugly uninitialized variable
- libxslt/transform.c: now using attr template processing
Daniel
2001-01-20 22:40:37 +00:00
Daniel Veillard
6b5e9df67f Working on variables implementation:
- libxslt/transform.c libxslt/variables.[ch] libxslt/xslt.c
  libxslt/xsltInternals.h libxslt/xsltutils.h: changed a few
  structure to add an execution stack with variables. Tree
  valued variables still missing.
- TODO: updated
Daniel
2001-01-20 17:02:16 +00:00
Daniel Veillard
327c8bdab6 - libxslt/xslt.c: check version on stylesheets
- libxslt/xslt.c libxslt/xsltInternals.h libxslt/variables[.ch]:
  started adding variables interfaces and modules.
Daniel
2001-01-19 12:27:23 +00:00
Daniel Veillard
07bd66faa1 Hacking, mostly on the output support:
- libxslt/xslt.c: added support for disable-output-escaping
  will need libxml version > 20211
- libxslt/transform.c: cleanup
- libxslt/xsltutils.[ch]: added output functions
- libxslt/xsltproc.c: reuse the output function
- tests/REC2/Makefile.am tests/REC2/vrml.xml: added VRML output test
Daniel
2001-01-18 15:13:25 +00:00
Daniel Veillard
584831ad3c - libxslt/transform.c libxslt/xslt.c: avoiding some problems
with blank node stripping when not allowed.
Daniel
2001-01-17 20:04:58 +00:00
Daniel Veillard
7c481a940b That part was complex actually:
- libxslt/transform.c: modified apply-templates processing
  added select and sort support support.
Daniel
2001-01-17 19:17:12 +00:00