libxslt-ruby 0.3.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/LICENSE +21 -21
  2. data/README +152 -48
  3. data/ext/{xml → libxslt}/extconf.rb +29 -22
  4. data/ext/{xml → libxslt}/libxslt.c +22 -18
  5. data/ext/{xml → libxslt}/libxslt.h +8 -9
  6. data/ext/{xml → libxslt}/ruby_xslt_stylesheet.c +19 -19
  7. data/ext/{xml → libxslt}/ruby_xslt_stylesheet.h +1 -1
  8. data/ext/{xml → libxslt}/ruby_xslt_transform_context.c +2 -4
  9. data/ext/{xml → libxslt}/ruby_xslt_transform_context.h +1 -1
  10. data/ext/libxslt/version.h +5 -0
  11. data/lib/libxslt.rb +2 -0
  12. data/mingw/libxslt-1.dll +0 -0
  13. data/mingw/libxslt_ruby.so +0 -0
  14. data/mingw/mingw.rake +36 -0
  15. data/vc/libxslt_ruby.sln +26 -0
  16. data/vc/libxslt_ruby.vcproj +233 -0
  17. metadata +66 -87
  18. data/CHANGELOG +0 -14
  19. data/Rakefile +0 -245
  20. data/TODO +0 -32
  21. data/ext/xml/libxml-ruby/libxml.h +0 -92
  22. data/ext/xml/libxml-ruby/ruby_xml_attr.h +0 -31
  23. data/ext/xml/libxml-ruby/ruby_xml_attribute.h +0 -31
  24. data/ext/xml/libxml-ruby/ruby_xml_document.h +0 -37
  25. data/ext/xml/libxml-ruby/ruby_xml_dtd.h +0 -27
  26. data/ext/xml/libxml-ruby/ruby_xml_input_cbg.h +0 -31
  27. data/ext/xml/libxml-ruby/ruby_xml_node.h +0 -38
  28. data/ext/xml/libxml-ruby/ruby_xml_node_set.h +0 -36
  29. data/ext/xml/libxml-ruby/ruby_xml_ns.h +0 -31
  30. data/ext/xml/libxml-ruby/ruby_xml_parser.h +0 -41
  31. data/ext/xml/libxml-ruby/ruby_xml_parser_context.h +0 -32
  32. data/ext/xml/libxml-ruby/ruby_xml_sax_parser.h +0 -31
  33. data/ext/xml/libxml-ruby/ruby_xml_schema.h +0 -26
  34. data/ext/xml/libxml-ruby/ruby_xml_tree.h +0 -22
  35. data/ext/xml/libxml-ruby/ruby_xml_xinclude.h +0 -23
  36. data/ext/xml/libxml-ruby/ruby_xml_xpath.h +0 -34
  37. data/ext/xml/libxml-ruby/ruby_xml_xpath_context.h +0 -34
  38. data/ext/xml/libxml-ruby/ruby_xml_xpointer.h +0 -37
  39. data/ext/xml/libxml-ruby/ruby_xml_xpointer_context.h +0 -28
  40. data/tests/commentary.dtd +0 -34
  41. data/tests/fuzface.rb +0 -15
  42. data/tests/fuzface.xml +0 -154
  43. data/tests/fuzface.xsl +0 -4
  44. data/tests/ramblings.xsl +0 -46
  45. data/tests/tc_libxslt.rb +0 -65
  46. data/tests/tc_xslt_stylesheet.rb +0 -41
  47. data/tests/tc_xslt_stylesheet2.rb +0 -41
data/tests/tc_libxslt.rb DELETED
@@ -1,65 +0,0 @@
1
- # $Id: tc_libxslt.rb,v 1.1.1.1 2006/03/09 01:36:20 roscopeco Exp $
2
- begin
3
- require 'xml/libxml'
4
- rescue LoadError => orig
5
- require 'rubygems' and retry
6
- raise orig
7
- end
8
-
9
- $TDIR = File.dirname(__FILE__)
10
- require "#$TDIR/../ext/xml/libxslt"
11
- require 'test/unit'
12
-
13
- class TC_XSLT < Test::Unit::TestCase
14
- def setup()
15
- @xslt = XML::XSLT.file("#$TDIR/fuzface.xsl")
16
- @xslt.doc = XML::Document.file("#$TDIR/fuzface.xml")
17
- assert_instance_of(XML::XSLT, @xslt)
18
- assert_instance_of(XML::Document, @xslt.doc)
19
- f = File.open("#$TDIR/fuzface.xsl")
20
- assert_instance_of(File, f)
21
-
22
- @xslt2 = XML::XSLT.new()
23
- assert_instance_of(XML::XSLT, @xslt2)
24
- @xslt2.filename = "#$TDIR/fuzface.xsl"
25
- assert_instance_of(String, @xslt.filename)
26
-
27
- @stylesheet = @xslt.parse
28
- assert_instance_of(XML::XSLT::Stylesheet, @stylesheet)
29
- end
30
-
31
- def tear_down()
32
- @xslt = nil
33
- @xslt2 = nil
34
- @stylesheet = nil
35
- end
36
-
37
- def test_ruby_xslt_constants()
38
- assert_instance_of(Fixnum, XML::XSLT::MAX_DEPTH)
39
- assert_instance_of(Fixnum, XML::XSLT::MAX_SORT)
40
- assert_instance_of(String, XML::XSLT::ENGINE_VERSION)
41
- assert_instance_of(Fixnum, XML::XSLT::LIBXSLT_VERSION)
42
- assert_instance_of(Fixnum, XML::XSLT::LIBXML_VERSION)
43
- assert_instance_of(String, XML::XSLT::XSLT_NAMESPACE)
44
- assert_instance_of(String, XML::XSLT::DEFAULT_URL)
45
- assert_instance_of(String, XML::XSLT::DEFAULT_VENDOR)
46
- assert_instance_of(String, XML::XSLT::DEFAULT_VERSION)
47
- assert_instance_of(String, XML::XSLT::NAMESPACE_LIBXSLT)
48
- assert_instance_of(String, XML::XSLT::NAMESPACE_SAXON)
49
- assert_instance_of(String, XML::XSLT::NAMESPACE_XT)
50
- assert_instance_of(String, XML::XSLT::NAMESPACE_XALAN)
51
- assert_instance_of(String, XML::XSLT::NAMESPACE_NORM_SAXON)
52
- end
53
-
54
- def test_ruby_xslt_file()
55
- assert_instance_of(XML::XSLT, @xslt)
56
- end
57
-
58
- def test_ruby_xslt_new()
59
- assert_instance_of(XML::XSLT, @xslt2)
60
- end
61
-
62
- def test_ruby_xslt_parse()
63
- assert_instance_of(XML::XSLT::Stylesheet, @stylesheet)
64
- end
65
- end
@@ -1,41 +0,0 @@
1
- # $Id: tc_xslt_stylesheet.rb,v 1.1.1.1 2006/03/09 01:36:20 roscopeco Exp $
2
- begin
3
- require 'xml/libxml'
4
- rescue LoadError
5
- require 'rubygems' and retry
6
- end
7
- $TDIR = File.dirname(__FILE__)
8
- require "#$TDIR/../ext/xml/libxslt"
9
- require 'test/unit'
10
-
11
- class TC_XSLT_STYLESHEET < Test::Unit::TestCase
12
- def setup()
13
- @xslt = XML::XSLT.file("#$TDIR/fuzface.xsl")
14
- @xslt.doc = XML::Document.file("#$TDIR/fuzface.xml")
15
- assert_instance_of(XML::XSLT, @xslt)
16
- assert_instance_of(XML::Document, @xslt.doc)
17
- @stylesheet = @xslt.parse
18
- assert_instance_of(XML::XSLT::Stylesheet, @stylesheet)
19
- end
20
-
21
- def tear_down()
22
- @xslt = nil
23
- @stylesheet = nil
24
- end
25
-
26
- def test_ruby_xslt_parse()
27
- assert_instance_of(XML::XSLT::Stylesheet, @stylesheet)
28
- end
29
-
30
- def test_ruby_xslt_stylesheet_to_s()
31
- @stylesheet.apply
32
- str = @stylesheet.to_s
33
- assert_instance_of(String, str)
34
- end
35
-
36
- def test_ruby_xslt_stylesheet_save()
37
- assert_raises(ArgumentError) do
38
- @stylesheet.save("str")
39
- end
40
- end
41
- end
@@ -1,41 +0,0 @@
1
- # $Id: tc_xslt_stylesheet2.rb,v 1.1.1.1 2006/03/09 01:36:20 roscopeco Exp $
2
- begin
3
- require 'xml/libxml'
4
- rescue LoadError
5
- require 'rubygems' and retry
6
- end
7
- $TDIR = File.dirname(__FILE__)
8
- require "#$TDIR/../ext/xml/libxslt"
9
- require 'test/unit'
10
-
11
- class TC_XSLT_Stylesheet2 < Test::Unit::TestCase
12
- def setup()
13
- @xslt = XML::XSLT.file("#$TDIR/fuzface.xsl")
14
- @xslt.doc = XML::Document.file("#$TDIR/fuzface.xml")
15
- assert_instance_of(XML::XSLT, @xslt)
16
- assert_instance_of(XML::Document, @xslt.doc)
17
- @stylesheet = @xslt.parse
18
- assert_instance_of(XML::XSLT::Stylesheet, @stylesheet)
19
- end
20
-
21
- def tear_down()
22
- @xslt = nil
23
- @stylesheet = nil
24
- end
25
-
26
- def test_ruby_xslt_parse()
27
- assert_instance_of(XML::XSLT::Stylesheet, @stylesheet)
28
- end
29
-
30
- def test_ruby_xslt_stylesheet_to_s()
31
- assert_raises(XML::XSLT::Stylesheet::RequireParsedDoc) do
32
- str = @stylesheet.to_s
33
- end
34
- end
35
-
36
- def test_ruby_xslt_stylesheet_print()
37
- assert_raises(XML::XSLT::Stylesheet::RequireParsedDoc) do
38
- @stylesheet.print
39
- end
40
- end
41
- end