saxon-xslt 0.7.2.1-java → 0.8.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/Gemfile +2 -0
- data/lib/saxon/configuration.rb +32 -1
- data/lib/saxon/loader.rb +83 -0
- data/lib/saxon/processor.rb +2 -1
- data/lib/saxon/s9api.rb +11 -9
- data/lib/saxon/xml.rb +10 -10
- data/lib/saxon/xslt.rb +7 -3
- data/lib/saxon/xslt/version.rb +1 -1
- data/saxon-licenses/CERN.txt +12 -12
- data/saxon-licenses/JAMESCLARK.txt +31 -31
- data/saxon-licenses/LICENSE.txt +376 -376
- data/saxon-licenses/THAI.txt +39 -39
- data/saxon-licenses/UNICODE.txt +38 -38
- data/saxon-xslt.gemspec +6 -6
- data/spec/fixtures/cassettes/Saxon_SourceHelper/returning_a_StreamSource/StreamSource_systemId/for_inputs_where_we_can_infer_the_path_or_URI/is_set_to_an_open-uri_d_URI_s_URI.yml +61 -0
- data/spec/fixtures/cassettes/Saxon_SourceHelper/returning_a_StreamSource/StreamSource_systemId/for_inputs_where_we_can_infer_the_path_or_URI/overrides_the_inferred_system_ID_if_set_explicitly.yml +61 -0
- data/spec/fixtures/cassettes/Saxon_SourceHelper/returning_a_StreamSource/for_input_backed_by_an_InputStream/converts_an_open-uri_d_Uri_correctly.yml +119 -0
- data/spec/fixtures/config.xml +2 -2
- data/spec/saxon/xml_spec.rb +2 -3
- data/spec/spec_helper.rb +7 -0
- data/vendor/saxonica/saxon9he.jar +0 -0
- metadata +20 -14
- data/vendor/saxonica/saxon9-unpack.jar +0 -0
- data/vendor/saxonica/saxon9-xqj.jar +0 -0
data/saxon-licenses/THAI.txt
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
|
2
|
-
(This notice is included in the Saxon distribution because Saxon
|
3
|
-
uses code for conversion of XML Schema Regular expressions to
|
4
|
-
Java/.NET regular expressions that was originally written by James
|
5
|
-
Clark and made available under this license. The Saxon version of
|
6
|
-
the code has been enhanced in various ways but is still recognizably
|
7
|
-
based on the original.)
|
8
|
-
|
9
|
-
Copyright (c) 2001-2003 Thai Open Source Software Center Ltd
|
10
|
-
All rights reserved.
|
11
|
-
|
12
|
-
Redistribution and use in source and binary forms, with or without
|
13
|
-
modification, are permitted provided that the following conditions are
|
14
|
-
met:
|
15
|
-
|
16
|
-
Redistributions of source code must retain the above copyright
|
17
|
-
notice, this list of conditions and the following disclaimer.
|
18
|
-
|
19
|
-
Redistributions in binary form must reproduce the above copyright
|
20
|
-
notice, this list of conditions and the following disclaimer in
|
21
|
-
the documentation and/or other materials provided with the
|
22
|
-
distribution.
|
23
|
-
|
24
|
-
Neither the name of the Thai Open Source Software Center Ltd nor
|
25
|
-
the names of its contributors may be used to endorse or promote
|
26
|
-
products derived from this software without specific prior written
|
27
|
-
permission.
|
28
|
-
|
29
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
30
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
31
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
32
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
|
33
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
34
|
-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
35
|
-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
36
|
-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
37
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
38
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
39
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
|
2
|
+
(This notice is included in the Saxon distribution because Saxon
|
3
|
+
uses code for conversion of XML Schema Regular expressions to
|
4
|
+
Java/.NET regular expressions that was originally written by James
|
5
|
+
Clark and made available under this license. The Saxon version of
|
6
|
+
the code has been enhanced in various ways but is still recognizably
|
7
|
+
based on the original.)
|
8
|
+
|
9
|
+
Copyright (c) 2001-2003 Thai Open Source Software Center Ltd
|
10
|
+
All rights reserved.
|
11
|
+
|
12
|
+
Redistribution and use in source and binary forms, with or without
|
13
|
+
modification, are permitted provided that the following conditions are
|
14
|
+
met:
|
15
|
+
|
16
|
+
Redistributions of source code must retain the above copyright
|
17
|
+
notice, this list of conditions and the following disclaimer.
|
18
|
+
|
19
|
+
Redistributions in binary form must reproduce the above copyright
|
20
|
+
notice, this list of conditions and the following disclaimer in
|
21
|
+
the documentation and/or other materials provided with the
|
22
|
+
distribution.
|
23
|
+
|
24
|
+
Neither the name of the Thai Open Source Software Center Ltd nor
|
25
|
+
the names of its contributors may be used to endorse or promote
|
26
|
+
products derived from this software without specific prior written
|
27
|
+
permission.
|
28
|
+
|
29
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
30
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
31
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
32
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
|
33
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
34
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
35
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
36
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
37
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
38
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
39
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/saxon-licenses/UNICODE.txt
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
|
2
|
-
(This notice is included in the Saxon distribution because Saxon
|
3
|
-
uses code performing Unicode Normalization that was originally written by Mark
|
4
|
-
Davis and made available under this license. The Saxon version of the
|
5
|
-
code has been enhanced in various minor ways but is still recognizably
|
6
|
-
based on the original. For details of modifications, see the comments in
|
7
|
-
the source code.)
|
8
|
-
|
9
|
-
|
10
|
-
COPYRIGHT AND PERMISSION NOTICE
|
11
|
-
Copyright � 1991-2007 Unicode, Inc. All rights reserved. Distributed under the Terms of Use
|
12
|
-
in http://www.unicode.org/copyright.html.
|
13
|
-
|
14
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode
|
15
|
-
data files and any associated documentation (the "Data Files") or Unicode software and any
|
16
|
-
associated documentation (the "Software") to deal in the Data Files or Software without
|
17
|
-
restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
18
|
-
and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or
|
19
|
-
Software are furnished to do so, provided that (a) the above copyright notice(s) and this
|
20
|
-
permission notice appear with all copies of the Data Files or Software, (b) both the above
|
21
|
-
copyright notice(s) and this permission notice appear in associated documentation, and
|
22
|
-
(c) there is clear notice in each modified Data File or in the Software as well as in the
|
23
|
-
documentation associated with the Data File(s) or Software that the data or software has
|
24
|
-
been modified.
|
25
|
-
|
26
|
-
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
27
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
28
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
29
|
-
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
30
|
-
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
31
|
-
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
32
|
-
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
33
|
-
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
34
|
-
FILES OR SOFTWARE.
|
35
|
-
|
36
|
-
Except as contained in this notice, the name of a copyright holder shall not be used
|
37
|
-
in advertising or otherwise to promote the sale, use or other dealings in these
|
38
|
-
Data Files or Software without prior written authorization of the copyright holder.
|
1
|
+
|
2
|
+
(This notice is included in the Saxon distribution because Saxon
|
3
|
+
uses code performing Unicode Normalization that was originally written by Mark
|
4
|
+
Davis and made available under this license. The Saxon version of the
|
5
|
+
code has been enhanced in various minor ways but is still recognizably
|
6
|
+
based on the original. For details of modifications, see the comments in
|
7
|
+
the source code.)
|
8
|
+
|
9
|
+
|
10
|
+
COPYRIGHT AND PERMISSION NOTICE
|
11
|
+
Copyright � 1991-2007 Unicode, Inc. All rights reserved. Distributed under the Terms of Use
|
12
|
+
in http://www.unicode.org/copyright.html.
|
13
|
+
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode
|
15
|
+
data files and any associated documentation (the "Data Files") or Unicode software and any
|
16
|
+
associated documentation (the "Software") to deal in the Data Files or Software without
|
17
|
+
restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
18
|
+
and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or
|
19
|
+
Software are furnished to do so, provided that (a) the above copyright notice(s) and this
|
20
|
+
permission notice appear with all copies of the Data Files or Software, (b) both the above
|
21
|
+
copyright notice(s) and this permission notice appear in associated documentation, and
|
22
|
+
(c) there is clear notice in each modified Data File or in the Software as well as in the
|
23
|
+
documentation associated with the Data File(s) or Software that the data or software has
|
24
|
+
been modified.
|
25
|
+
|
26
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
27
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
28
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
29
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
30
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
31
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
32
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
33
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
34
|
+
FILES OR SOFTWARE.
|
35
|
+
|
36
|
+
Except as contained in this notice, the name of a copyright holder shall not be used
|
37
|
+
in advertising or otherwise to promote the sale, use or other dealings in these
|
38
|
+
Data Files or Software without prior written authorization of the copyright holder.
|
data/saxon-xslt.gemspec
CHANGED
@@ -14,16 +14,16 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.licenses = ["MIT", "MPL-1.0"]
|
15
15
|
gem.platform = 'java'
|
16
16
|
|
17
|
-
gem.files = `git ls-files`.split($/)
|
17
|
+
gem.files = `git ls-files`.split($/)
|
18
18
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
19
19
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
20
20
|
gem.require_paths = ["lib"]
|
21
21
|
|
22
|
-
gem.add_development_dependency('rake', '~>
|
22
|
+
gem.add_development_dependency('rake', '~> 10.1')
|
23
23
|
gem.add_development_dependency('rspec', '~> 3.0')
|
24
|
-
gem.add_development_dependency('vcr', '~>
|
24
|
+
gem.add_development_dependency('vcr', '~> 2.9.2')
|
25
25
|
gem.add_development_dependency('addressable', '~> 2.4.0')
|
26
|
-
gem.add_development_dependency('webmock', '~>
|
27
|
-
gem.add_development_dependency('yard', '~> 0.
|
28
|
-
gem.add_development_dependency('simplecov', '~> 0.
|
26
|
+
gem.add_development_dependency('webmock', '~> 1.18.0')
|
27
|
+
gem.add_development_dependency('yard', '~> 0.8.7')
|
28
|
+
gem.add_development_dependency('simplecov', '~> 0.13')
|
29
29
|
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://example.org/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Cache-Control:
|
20
|
+
- max-age=604800
|
21
|
+
Content-Type:
|
22
|
+
- text/html
|
23
|
+
Date:
|
24
|
+
- Thu, 07 Dec 2017 14:55:49 GMT
|
25
|
+
Etag:
|
26
|
+
- '"359670651+ident"'
|
27
|
+
Expires:
|
28
|
+
- Thu, 14 Dec 2017 14:55:49 GMT
|
29
|
+
Last-Modified:
|
30
|
+
- Fri, 09 Aug 2013 23:54:35 GMT
|
31
|
+
Server:
|
32
|
+
- ECS (dca/532C)
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
X-Cache:
|
36
|
+
- HIT
|
37
|
+
Content-Length:
|
38
|
+
- '1270'
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\
|
42
|
+
\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"\
|
43
|
+
text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,\
|
44
|
+
\ initial-scale=1\" />\n <style type=\"text/css\">\n body {\n \
|
45
|
+
\ background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n \
|
46
|
+
\ font-family: \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial,\
|
47
|
+
\ sans-serif;\n \n }\n div {\n width: 600px;\n \
|
48
|
+
\ margin: 5em auto;\n padding: 50px;\n background-color: #fff;\n\
|
49
|
+
\ border-radius: 1em;\n }\n a:link, a:visited {\n color:\
|
50
|
+
\ #38488f;\n text-decoration: none;\n }\n @media (max-width:\
|
51
|
+
\ 700px) {\n body {\n background-color: #fff;\n }\n\
|
52
|
+
\ div {\n width: auto;\n margin: 0 auto;\n \
|
53
|
+
\ border-radius: 0;\n padding: 1em;\n }\n }\n\
|
54
|
+
\ </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n\
|
55
|
+
\ <p>This domain is established to be used for illustrative examples in\
|
56
|
+
\ documents. You may use this\n domain in examples without prior coordination\
|
57
|
+
\ or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\"\
|
58
|
+
>More information...</a></p>\n</div>\n</body>\n</html>\n"
|
59
|
+
http_version:
|
60
|
+
recorded_at: Thu, 07 Dec 2017 14:55:49 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://example.org/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Cache-Control:
|
20
|
+
- max-age=604800
|
21
|
+
Content-Type:
|
22
|
+
- text/html
|
23
|
+
Date:
|
24
|
+
- Thu, 07 Dec 2017 14:55:50 GMT
|
25
|
+
Etag:
|
26
|
+
- '"359670651+ident"'
|
27
|
+
Expires:
|
28
|
+
- Thu, 14 Dec 2017 14:55:50 GMT
|
29
|
+
Last-Modified:
|
30
|
+
- Fri, 09 Aug 2013 23:54:35 GMT
|
31
|
+
Server:
|
32
|
+
- ECS (dca/53F7)
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
X-Cache:
|
36
|
+
- HIT
|
37
|
+
Content-Length:
|
38
|
+
- '1270'
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\
|
42
|
+
\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"\
|
43
|
+
text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,\
|
44
|
+
\ initial-scale=1\" />\n <style type=\"text/css\">\n body {\n \
|
45
|
+
\ background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n \
|
46
|
+
\ font-family: \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial,\
|
47
|
+
\ sans-serif;\n \n }\n div {\n width: 600px;\n \
|
48
|
+
\ margin: 5em auto;\n padding: 50px;\n background-color: #fff;\n\
|
49
|
+
\ border-radius: 1em;\n }\n a:link, a:visited {\n color:\
|
50
|
+
\ #38488f;\n text-decoration: none;\n }\n @media (max-width:\
|
51
|
+
\ 700px) {\n body {\n background-color: #fff;\n }\n\
|
52
|
+
\ div {\n width: auto;\n margin: 0 auto;\n \
|
53
|
+
\ border-radius: 0;\n padding: 1em;\n }\n }\n\
|
54
|
+
\ </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n\
|
55
|
+
\ <p>This domain is established to be used for illustrative examples in\
|
56
|
+
\ documents. You may use this\n domain in examples without prior coordination\
|
57
|
+
\ or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\"\
|
58
|
+
>More information...</a></p>\n</div>\n</body>\n</html>\n"
|
59
|
+
http_version:
|
60
|
+
recorded_at: Thu, 07 Dec 2017 14:55:50 GMT
|
61
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,119 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://example.org/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- '*/*'
|
12
|
+
User-Agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Cache-Control:
|
20
|
+
- max-age=604800
|
21
|
+
Content-Type:
|
22
|
+
- text/html
|
23
|
+
Date:
|
24
|
+
- Thu, 07 Dec 2017 14:55:48 GMT
|
25
|
+
Etag:
|
26
|
+
- '"359670651+ident"'
|
27
|
+
Expires:
|
28
|
+
- Thu, 14 Dec 2017 14:55:48 GMT
|
29
|
+
Last-Modified:
|
30
|
+
- Fri, 09 Aug 2013 23:54:35 GMT
|
31
|
+
Server:
|
32
|
+
- ECS (dca/2454)
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
X-Cache:
|
36
|
+
- HIT
|
37
|
+
Content-Length:
|
38
|
+
- '1270'
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\
|
42
|
+
\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"\
|
43
|
+
text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,\
|
44
|
+
\ initial-scale=1\" />\n <style type=\"text/css\">\n body {\n \
|
45
|
+
\ background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n \
|
46
|
+
\ font-family: \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial,\
|
47
|
+
\ sans-serif;\n \n }\n div {\n width: 600px;\n \
|
48
|
+
\ margin: 5em auto;\n padding: 50px;\n background-color: #fff;\n\
|
49
|
+
\ border-radius: 1em;\n }\n a:link, a:visited {\n color:\
|
50
|
+
\ #38488f;\n text-decoration: none;\n }\n @media (max-width:\
|
51
|
+
\ 700px) {\n body {\n background-color: #fff;\n }\n\
|
52
|
+
\ div {\n width: auto;\n margin: 0 auto;\n \
|
53
|
+
\ border-radius: 0;\n padding: 1em;\n }\n }\n\
|
54
|
+
\ </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n\
|
55
|
+
\ <p>This domain is established to be used for illustrative examples in\
|
56
|
+
\ documents. You may use this\n domain in examples without prior coordination\
|
57
|
+
\ or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\"\
|
58
|
+
>More information...</a></p>\n</div>\n</body>\n</html>\n"
|
59
|
+
http_version:
|
60
|
+
recorded_at: Thu, 07 Dec 2017 14:55:48 GMT
|
61
|
+
- request:
|
62
|
+
method: get
|
63
|
+
uri: http://example.org/
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: ''
|
67
|
+
headers:
|
68
|
+
Accept:
|
69
|
+
- '*/*'
|
70
|
+
User-Agent:
|
71
|
+
- Ruby
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Cache-Control:
|
78
|
+
- max-age=604800
|
79
|
+
Content-Type:
|
80
|
+
- text/html
|
81
|
+
Date:
|
82
|
+
- Thu, 07 Dec 2017 14:55:48 GMT
|
83
|
+
Etag:
|
84
|
+
- '"359670651+ident"'
|
85
|
+
Expires:
|
86
|
+
- Thu, 14 Dec 2017 14:55:48 GMT
|
87
|
+
Last-Modified:
|
88
|
+
- Fri, 09 Aug 2013 23:54:35 GMT
|
89
|
+
Server:
|
90
|
+
- ECS (dca/2454)
|
91
|
+
Vary:
|
92
|
+
- Accept-Encoding
|
93
|
+
X-Cache:
|
94
|
+
- HIT
|
95
|
+
Content-Length:
|
96
|
+
- '1270'
|
97
|
+
body:
|
98
|
+
encoding: US-ASCII
|
99
|
+
string: "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\
|
100
|
+
\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"\
|
101
|
+
text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width,\
|
102
|
+
\ initial-scale=1\" />\n <style type=\"text/css\">\n body {\n \
|
103
|
+
\ background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n \
|
104
|
+
\ font-family: \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial,\
|
105
|
+
\ sans-serif;\n \n }\n div {\n width: 600px;\n \
|
106
|
+
\ margin: 5em auto;\n padding: 50px;\n background-color: #fff;\n\
|
107
|
+
\ border-radius: 1em;\n }\n a:link, a:visited {\n color:\
|
108
|
+
\ #38488f;\n text-decoration: none;\n }\n @media (max-width:\
|
109
|
+
\ 700px) {\n body {\n background-color: #fff;\n }\n\
|
110
|
+
\ div {\n width: auto;\n margin: 0 auto;\n \
|
111
|
+
\ border-radius: 0;\n padding: 1em;\n }\n }\n\
|
112
|
+
\ </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n\
|
113
|
+
\ <p>This domain is established to be used for illustrative examples in\
|
114
|
+
\ documents. You may use this\n domain in examples without prior coordination\
|
115
|
+
\ or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\"\
|
116
|
+
>More information...</a></p>\n</div>\n</body>\n</html>\n"
|
117
|
+
http_version:
|
118
|
+
recorded_at: Thu, 07 Dec 2017 14:55:49 GMT
|
119
|
+
recorded_with: VCR 2.9.3
|
data/spec/fixtures/config.xml
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
schemaAware="false"
|
55
55
|
errorListener="net.sf.saxon.StandardErrorListener">
|
56
56
|
</xslt>
|
57
|
-
<xquery version="
|
57
|
+
<xquery version="3.1"
|
58
58
|
allowUpdate="false"
|
59
59
|
errorListener="net.sf.saxon.StandardErrorListener"
|
60
60
|
errorListenerFile=""
|
@@ -67,4 +67,4 @@
|
|
67
67
|
preserveBoundarySpace="false"
|
68
68
|
requiredContextItemType="document-node()"
|
69
69
|
emptyLeast="true"/>
|
70
|
-
</configuration>
|
70
|
+
</configuration>
|
data/spec/saxon/xml_spec.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'saxon/xml'
|
3
3
|
|
4
|
-
java_import 'net.sf.saxon.s9api.XdmNodeKind'
|
5
|
-
java_import 'net.sf.saxon.s9api.XdmNode'
|
6
|
-
|
7
4
|
describe Saxon::XML do
|
5
|
+
XdmNode = Saxon::S9API::XdmNode
|
6
|
+
XdmNodeKind = Saxon::S9API::XdmNodeKind
|
8
7
|
let(:processor) { Saxon::Processor.create }
|
9
8
|
|
10
9
|
context "parsing a document" do
|