ruby-xslt 0.9.3 → 0.9.4
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.
- data/AUTHORS +26 -26
- data/COPYING +340 -340
- data/ext/xslt_lib/extconf.h +3 -0
- data/{extconf.rb → ext/xslt_lib/extconf.rb} +79 -79
- data/{extfunc.c → ext/xslt_lib/extfunc.c} +0 -0
- data/{extfunc.h → ext/xslt_lib/extfunc.h} +0 -0
- data/{parameters.c → ext/xslt_lib/parameters.c} +0 -0
- data/{parameters.h → ext/xslt_lib/parameters.h} +0 -0
- data/{parser.c → ext/xslt_lib/parser.c} +0 -0
- data/{parser.h → ext/xslt_lib/parser.h} +0 -0
- data/{rb_utils.c → ext/xslt_lib/rb_utils.c} +0 -0
- data/{rb_utils.h → ext/xslt_lib/rb_utils.h} +0 -0
- data/{xslt.h → ext/xslt_lib/xslt.h} +2 -2
- data/{xslt_lib.c → ext/xslt_lib/xslt_lib.c} +0 -0
- data/lib/xml/xslt.rb +64 -0
- data/setup.rb +1585 -0
- data/{examples/fuzface.xsl → test/subdir/result.xsl} +3 -4
- data/test/subdir/test.xsl +8 -0
- data/{tests → test}/t.xml +0 -0
- data/{tests → test}/t.xsl +0 -0
- data/{tests → test}/test.rb +0 -0
- metadata +31 -53
- data/debug/memwatch.c +0 -2664
- data/debug/memwatch.h +0 -707
- data/examples/commentary.dtd +0 -34
- data/examples/functions.xsl +0 -51
- data/examples/fuzface.rb +0 -13
- data/examples/fuzface.xml +0 -154
- data/examples/fuzface_REXML.rb +0 -11
- data/examples/fuzface_XML-Simple.rb +0 -12
- data/examples/fuzface_data.rb +0 -13
- data/examples/fuzface_error.rb +0 -86
- data/examples/fuzface_to_s.rb +0 -9
- data/examples/info.rb +0 -19
- data/examples/ramblings.xsl +0 -46
- data/examples/test.xml +0 -5
- data/examples/test.xsl +0 -18
- data/examples/test_functions.rb +0 -18
- data/examples/test_parameters.rb +0 -13
- data/ruby-xslt.gemspec +0 -19
data/examples/test.xml
DELETED
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"/>
|
9
|
-
p2:<xsl:value-of select="$p2"/>
|
10
|
-
<xsl:apply-templates/>
|
11
|
-
</xsl:template>
|
12
|
-
|
13
|
-
<xsl:template match="node">
|
14
|
-
<xsl:value-of select="."/>(<xsl:value-of select="@number"/>)
|
15
|
-
</xsl:template>
|
16
|
-
|
17
|
-
</xsl:stylesheet>
|
18
|
-
|
data/examples/test_functions.rb
DELETED
@@ -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
|
data/examples/test_parameters.rb
DELETED
@@ -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
|