libxslt-ruby 0.6.0-x86-mswin32-60 → 0.7.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/README +125 -136
- data/doc/classes/XSLT.html +215 -0
- data/doc/classes/XSLT/Stylesheet.html +244 -0
- data/doc/classes/XSLT/TransformContext.html +111 -0
- data/doc/created.rid +1 -0
- data/doc/files/CHANGES.html +168 -0
- data/doc/files/LICENSE.html +133 -0
- data/doc/files/README.html +269 -0
- data/doc/files/ext/libxslt/libxslt_c.html +101 -0
- data/doc/files/ext/libxslt/ruby_xslt_stylesheet_c.html +101 -0
- data/doc/files/ext/libxslt/ruby_xslt_transform_context_c.html +101 -0
- data/doc/files/lib/deprecated_rb.html +101 -0
- data/doc/files/lib/libxslt_rb.html +110 -0
- data/doc/fr_class_index.html +29 -0
- data/doc/fr_file_index.html +34 -0
- data/doc/fr_method_index.html +28 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/ext/libxslt/libxslt.c +21 -212
- data/ext/libxslt/libxslt.h +0 -17
- data/ext/libxslt/ruby_xslt_stylesheet.c +135 -173
- data/ext/libxslt/ruby_xslt_stylesheet.h +5 -10
- data/ext/libxslt/ruby_xslt_transform_context.c +5 -2
- data/ext/libxslt/version.h +2 -2
- data/lib/deprecated.rb +66 -0
- data/lib/libxslt.rb +1 -0
- data/lib/libxslt_ruby.so +0 -0
- data/mingw/libxslt_ruby.so +0 -0
- data/tests/files/commentary.dtd +34 -0
- data/tests/files/fuzface.xml +154 -0
- data/tests/files/fuzface.xsl +4 -0
- data/tests/files/params.xml +2 -0
- data/tests/files/params.xsl +11 -0
- data/tests/files/ramblings.xsl +46 -0
- data/tests/test_deprecated.rb +99 -0
- data/tests/test_libxslt.rb +21 -0
- data/tests/test_stylesheet.rb +64 -0
- data/tests/test_suite.rb +3 -0
- data/vc/libxslt_ruby.sln +1 -1
- data/vc/libxslt_ruby.vcproj +3 -3
- metadata +41 -10
- data/mingw/mingw.rake +0 -36
@@ -0,0 +1,244 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: XSLT::Stylesheet</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">XSLT::Stylesheet</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/ext/libxslt/ruby_xslt_stylesheet_c.html">
|
59
|
+
ext/libxslt/ruby_xslt_stylesheet.c
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
The <a href="Stylesheet.html">XSLT::Stylesheet</a> represents a XSL
|
84
|
+
stylesheet that can be used to transform an XML document. For usage
|
85
|
+
information refer to <a
|
86
|
+
href="Stylesheet.html#M000002">XSLT::Stylesheet#apply</a>
|
87
|
+
</p>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<div id="method-list">
|
95
|
+
<h3 class="section-bar">Methods</h3>
|
96
|
+
|
97
|
+
<div class="name-list">
|
98
|
+
<a href="#M000002">apply</a>
|
99
|
+
<a href="#M000001">new</a>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<!-- if includes -->
|
107
|
+
|
108
|
+
<div id="section">
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<!-- if method_list -->
|
118
|
+
<div id="methods">
|
119
|
+
<h3 class="section-bar">Public Class methods</h3>
|
120
|
+
|
121
|
+
<div id="method-M000001" class="method-detail">
|
122
|
+
<a name="M000001"></a>
|
123
|
+
|
124
|
+
<div class="method-heading">
|
125
|
+
<a href="#M000001" class="method-signature">
|
126
|
+
<span class="method-name">XSLT::Stylesheet.new(document) → XSLT::Stylesheet<br />
|
127
|
+
</span>
|
128
|
+
</a>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div class="method-description">
|
132
|
+
<p>
|
133
|
+
Creates a new <a href="../XSLT.html">XSLT</a> stylesheet based on the
|
134
|
+
provided document.
|
135
|
+
</p>
|
136
|
+
<pre>
|
137
|
+
stylesheet_doc = XML::Document.file('stylesheet_file')
|
138
|
+
stylesheet = XSLT::Stylesheet.new(stylesheet_doc)
|
139
|
+
</pre>
|
140
|
+
<p><a class="source-toggle" href="#"
|
141
|
+
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000001-source">
|
143
|
+
<pre>
|
144
|
+
/* call-seq:
|
145
|
+
* XSLT::Stylesheet.new(document) -> XSLT::Stylesheet
|
146
|
+
*
|
147
|
+
* Creates a new XSLT stylesheet based on the provided document.
|
148
|
+
*
|
149
|
+
* stylesheet_doc = XML::Document.file('stylesheet_file')
|
150
|
+
* stylesheet = XSLT::Stylesheet.new(stylesheet_doc)
|
151
|
+
*
|
152
|
+
*/
|
153
|
+
VALUE
|
154
|
+
ruby_xslt_stylesheet_initialize(VALUE self, VALUE document) {
|
155
|
+
|
156
|
+
</pre>
|
157
|
+
</div>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
162
|
+
|
163
|
+
<div id="method-M000002" class="method-detail">
|
164
|
+
<a name="M000002"></a>
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<a href="#M000002" class="method-signature">
|
168
|
+
<span class="method-name">stylesheet.apply(document, {params}) → XML::Document<br />
|
169
|
+
</span>
|
170
|
+
</a>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
<div class="method-description">
|
174
|
+
<p>
|
175
|
+
Apply this stylesheet transformation to the provided document. This method
|
176
|
+
may be invoked multiple times.
|
177
|
+
</p>
|
178
|
+
<p>
|
179
|
+
Params:
|
180
|
+
</p>
|
181
|
+
<p>
|
182
|
+
document = An instance of an XML::Document params = An optional hash table
|
183
|
+
that specifies the values
|
184
|
+
</p>
|
185
|
+
<pre>
|
186
|
+
for xsl:param values embedded in the stylesheet.
|
187
|
+
</pre>
|
188
|
+
<p>
|
189
|
+
Example:
|
190
|
+
</p>
|
191
|
+
<pre>
|
192
|
+
stylesheet_doc = XML::Document.file('stylesheet_file')
|
193
|
+
stylesheet = XSLT::Stylesheet.new(stylesheet_doc)
|
194
|
+
|
195
|
+
xml_doc = XML::Document.file('xml_file')
|
196
|
+
result = stylesheet.apply(xml_doc)
|
197
|
+
result = stylesheet.apply(xml_doc, {:foo => 'bar'})
|
198
|
+
</pre>
|
199
|
+
<p><a class="source-toggle" href="#"
|
200
|
+
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
201
|
+
<div class="method-source-code" id="M000002-source">
|
202
|
+
<pre>
|
203
|
+
/* call-seq:
|
204
|
+
* stylesheet.apply(document, {params}) -> XML::Document
|
205
|
+
*
|
206
|
+
* Apply this stylesheet transformation to the provided document.
|
207
|
+
* This method may be invoked multiple times.
|
208
|
+
*
|
209
|
+
* Params:
|
210
|
+
*
|
211
|
+
* document = An instance of an XML::Document
|
212
|
+
* params = An optional hash table that specifies the values
|
213
|
+
* for xsl:param values embedded in the stylesheet.
|
214
|
+
*
|
215
|
+
* Example:
|
216
|
+
*
|
217
|
+
* stylesheet_doc = XML::Document.file('stylesheet_file')
|
218
|
+
* stylesheet = XSLT::Stylesheet.new(stylesheet_doc)
|
219
|
+
*
|
220
|
+
* xml_doc = XML::Document.file('xml_file')
|
221
|
+
* result = stylesheet.apply(xml_doc)
|
222
|
+
* result = stylesheet.apply(xml_doc, {:foo => 'bar'})
|
223
|
+
*/
|
224
|
+
VALUE
|
225
|
+
ruby_xslt_stylesheet_apply(int argc, VALUE *argv, VALUE self) {
|
226
|
+
|
227
|
+
</pre>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
|
236
|
+
</div>
|
237
|
+
|
238
|
+
|
239
|
+
<div id="validator-badges">
|
240
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
</body>
|
244
|
+
</html>
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: XSLT::TransformContext</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">XSLT::TransformContext</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/ext/libxslt/ruby_xslt_stylesheet_c.html">
|
59
|
+
ext/libxslt/ruby_xslt_stylesheet.c
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if method_list -->
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="validator-badges">
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</body>
|
111
|
+
</html>
|
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Thu Jul 10 18:01:17 Mountain Daylight Time 2008
|
@@ -0,0 +1,168 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: CHANGES</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>CHANGES</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>CHANGES
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Thu Jul 10 16:46:28 Mountain Daylight Time 2008</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<h2>0.7.0 / 2008-07-10 Charlie Savage</h2>
|
73
|
+
<ul>
|
74
|
+
<li>Ability to reuse the same stylesheet multile times
|
75
|
+
|
76
|
+
</li>
|
77
|
+
<li>Simpler api
|
78
|
+
|
79
|
+
</li>
|
80
|
+
<li>Compatibility layer for pre-0.7.0 versions
|
81
|
+
|
82
|
+
</li>
|
83
|
+
<li>Major rewrite, resulting in significantly less code
|
84
|
+
|
85
|
+
</li>
|
86
|
+
<li>Updated RDocs.
|
87
|
+
|
88
|
+
</li>
|
89
|
+
</ul>
|
90
|
+
<h2>0.6.0 / 2008-07-01 Charlie Savage</h2>
|
91
|
+
<ul>
|
92
|
+
<li>Now packaged as a separate gem
|
93
|
+
|
94
|
+
</li>
|
95
|
+
<li>Windows support (both lots of memory fixes and binaries)
|
96
|
+
|
97
|
+
</li>
|
98
|
+
<li>New libxslt.rb ruby wrapper, so programs can simply say require
|
99
|
+
‘libxslt’
|
100
|
+
|
101
|
+
</li>
|
102
|
+
</ul>
|
103
|
+
<h2>0.5.0 / 2006-02-27 Ross Bamford <rosco at roscopeco.co.uk></h2>
|
104
|
+
<ul>
|
105
|
+
<li>Source layout for Rubygem release
|
106
|
+
|
107
|
+
</li>
|
108
|
+
<li>Fixed unit tests (set_up to setup, directory handling)
|
109
|
+
|
110
|
+
</li>
|
111
|
+
<li>Updated extconf to remove shell-script dependency
|
112
|
+
|
113
|
+
</li>
|
114
|
+
<li>Fixed multiple symbol declarations for -fno-common
|
115
|
+
|
116
|
+
</li>
|
117
|
+
</ul>
|
118
|
+
<h2>0.4.0 / 2003-12-15 Martin Povolny <martin@solnet.cz></h2>
|
119
|
+
<ul>
|
120
|
+
<li>libxslt.c: added call to exsltRegisterAll to enable exslt extensions
|
121
|
+
|
122
|
+
</li>
|
123
|
+
<li>extconf.rb: added -lexslt
|
124
|
+
|
125
|
+
</li>
|
126
|
+
</ul>
|
127
|
+
<h2>0.3.0 / 2004-02-01 Martin Povolny <martin@solnet.cz></h2>
|
128
|
+
<ul>
|
129
|
+
<li>libxslt.c: added call to ruby_init_xslt_transform_context() to make it
|
130
|
+
|
131
|
+
<pre>
|
132
|
+
work on ruby1.8
|
133
|
+
</pre>
|
134
|
+
</li>
|
135
|
+
</ul>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
<!-- if includes -->
|
147
|
+
|
148
|
+
<div id="section">
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<!-- if method_list -->
|
158
|
+
|
159
|
+
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
<div id="validator-badges">
|
164
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
165
|
+
</div>
|
166
|
+
|
167
|
+
</body>
|
168
|
+
</html>
|