ruby-xslt 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/AUTHORS +26 -26
  2. data/COPYING +340 -340
  3. data/ext/xslt_lib/extconf.h +3 -0
  4. data/{extconf.rb → ext/xslt_lib/extconf.rb} +79 -79
  5. data/{extfunc.c → ext/xslt_lib/extfunc.c} +0 -0
  6. data/{extfunc.h → ext/xslt_lib/extfunc.h} +0 -0
  7. data/{parameters.c → ext/xslt_lib/parameters.c} +0 -0
  8. data/{parameters.h → ext/xslt_lib/parameters.h} +0 -0
  9. data/{parser.c → ext/xslt_lib/parser.c} +0 -0
  10. data/{parser.h → ext/xslt_lib/parser.h} +0 -0
  11. data/{rb_utils.c → ext/xslt_lib/rb_utils.c} +0 -0
  12. data/{rb_utils.h → ext/xslt_lib/rb_utils.h} +0 -0
  13. data/{xslt.h → ext/xslt_lib/xslt.h} +2 -2
  14. data/{xslt_lib.c → ext/xslt_lib/xslt_lib.c} +0 -0
  15. data/lib/xml/xslt.rb +64 -0
  16. data/setup.rb +1585 -0
  17. data/{examples/fuzface.xsl → test/subdir/result.xsl} +3 -4
  18. data/test/subdir/test.xsl +8 -0
  19. data/{tests → test}/t.xml +0 -0
  20. data/{tests → test}/t.xsl +0 -0
  21. data/{tests → test}/test.rb +0 -0
  22. metadata +31 -53
  23. data/debug/memwatch.c +0 -2664
  24. data/debug/memwatch.h +0 -707
  25. data/examples/commentary.dtd +0 -34
  26. data/examples/functions.xsl +0 -51
  27. data/examples/fuzface.rb +0 -13
  28. data/examples/fuzface.xml +0 -154
  29. data/examples/fuzface_REXML.rb +0 -11
  30. data/examples/fuzface_XML-Simple.rb +0 -12
  31. data/examples/fuzface_data.rb +0 -13
  32. data/examples/fuzface_error.rb +0 -86
  33. data/examples/fuzface_to_s.rb +0 -9
  34. data/examples/info.rb +0 -19
  35. data/examples/ramblings.xsl +0 -46
  36. data/examples/test.xml +0 -5
  37. data/examples/test.xsl +0 -18
  38. data/examples/test_functions.rb +0 -18
  39. data/examples/test_parameters.rb +0 -13
  40. data/ruby-xslt.gemspec +0 -19
data/examples/test.xml DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
- <nodes>
3
- <node number="1">Hello, </node>
4
- <node number="2">World!</node>
5
- </nodes>
data/examples/test.xsl DELETED
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="ISO-8859-1"?>
2
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
- <xsl:output method="text" encoding="iso-8859-1" indent="no"/>
4
- <xsl:param name="p1"/>
5
- <xsl:param name="p2"/>
6
-
7
- <xsl:template match="/">
8
- p1:<xsl:value-of select="$p1"/>&#10;
9
- p2:<xsl:value-of select="$p2"/>&#10;
10
- <xsl:apply-templates/>
11
- </xsl:template>
12
-
13
- <xsl:template match="node">
14
- <xsl:value-of select="."/>(<xsl:value-of select="@number"/>)&#10;
15
- </xsl:template>
16
-
17
- </xsl:stylesheet>
18
-
@@ -1,18 +0,0 @@
1
- require "xml/xslt"
2
-
3
- class XML::XSLT
4
- def round_trip( arg )
5
- arg
6
- end
7
- def type( arg )
8
- arg.class.to_s
9
- end
10
- end
11
-
12
- xslt = XML::XSLT.new()
13
- xslt.xsl = "functions.xsl"
14
- xslt.xml = "test.xml"
15
- XML::XSLT.extFunction("round-trip", "http://test.none", xslt)
16
- XML::XSLT.extFunction("type", "http://test.none", xslt)
17
-
18
- puts xslt.serve
@@ -1,13 +0,0 @@
1
- require "xml/xslt"
2
-
3
- xslt = XML::XSLT.new()
4
- xslt.xsl = "test.xsl"
5
- xslt.xml = "test.xml"
6
- xslt.parameters = { "p1" => "the first parameter ...",
7
- "p2" => "'and the second one!'" }
8
- #xslt.save("test.html")
9
- puts xslt.serve
10
- xslt.parameters = { "p1" => "Ruby...",
11
- "p2" => "'...is cool !'" }
12
- #xslt.save("test.html")
13
- puts xslt.serve
data/ruby-xslt.gemspec DELETED
@@ -1,19 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = %q{ruby-xslt}
3
- s.version = "0.9.3"
4
- s.date = %q{2005-11-17}
5
- s.summary = %q{A Ruby class for processing XSLT}
6
- s.email = %q{gregoire.lejeune@free.fr}
7
- s.homepage = %q{http://raa.ruby-lang.org/project/ruby-xslt/}
8
- s.description = %q{Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/> and libxslt <http://xmlsoft.org/XSLT/>}
9
- s.has_rdoc = true
10
- s.authors = ["Gregoire Lejeune"]
11
- candidates = Dir.glob("{.,debug,examples,tests}/*")
12
- s.files = candidates.delete_if do |item|
13
- item.include?("CVS") || item.include?("rdoc")
14
- end
15
- s.test_files = ["tests/test.rb"]
16
- s.rdoc_options = ["--title", "Ruby/XSLT", "--main", "README", "--line-numbers"]
17
- s.extra_rdoc_files = ["README", "AUTHORS", "COPYING", "ChangeLog"]
18
- s.extensions = ["extconf.rb"]
19
- end