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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fa63f9f16b00b103c6b551c16bcd13cf05b9c3e
|
4
|
+
data.tar.gz: 70f62470e1709fa2662f3718b3a305f8e8c6fda1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c23a83bd4048fd45a9772e829d985d60fec74b5e243396c41ccb275591b3ea3c184141dac42fbff9f6e775085177f8f28cf6d2452c3611c7b2bb47e22fd9035
|
7
|
+
data.tar.gz: 4b0e700ce889086ebb00a234f1bba72117893ea8a86a97e051afbb4db84a5c75bf991aa9b463410d50ca04535b63309d7ed405dea627fc34320dcca721a08b2d
|
data/.travis.yml
CHANGED
@@ -2,7 +2,8 @@ dist: trusty
|
|
2
2
|
sudo: false
|
3
3
|
language: ruby
|
4
4
|
rvm:
|
5
|
-
jruby-
|
5
|
+
- jruby-9.1.14.0
|
6
|
+
- jruby-1.7.27
|
6
7
|
jdk:
|
7
8
|
- oraclejdk8
|
8
9
|
- openjdk7
|
@@ -11,8 +12,8 @@ env:
|
|
11
12
|
JDK_VERSION_FOR_CODECLIMATE: oraclejdk8
|
12
13
|
JRUBY_OPTS: "--debug"
|
13
14
|
before_script:
|
14
|
-
- if [ "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter;
|
15
|
+
- if [ "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter; fi
|
15
16
|
script:
|
16
17
|
- bundle exec rspec
|
17
|
-
- if [
|
18
|
+
- if [ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_JDK_VERSION" = "$JDK_VERSION_FOR_CODECLIMATE" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
|
18
19
|
|
data/Gemfile
CHANGED
data/lib/saxon/configuration.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'saxon/s9api'
|
2
|
+
|
1
3
|
module Saxon
|
2
4
|
# Wraps the <tt>net.saxon.Configuration</tt> class. See
|
3
5
|
# http://saxonica.com/documentation9.5/javadoc/net/sf/saxon/Configuration.html
|
@@ -6,9 +8,21 @@ module Saxon
|
|
6
8
|
# http://saxonica.com/documentation9.5/javadoc/net/sf/saxon/lib/FeatureKeys.html
|
7
9
|
# for details of the constant names used to access the values
|
8
10
|
class Configuration
|
11
|
+
DEFAULT_SEMAPHORE = Mutex.new
|
12
|
+
|
13
|
+
# Provides a processor with default configuration. Essentially a singleton
|
14
|
+
# instance
|
15
|
+
# @return [Saxon::Processor]
|
16
|
+
def self.default
|
17
|
+
DEFAULT_SEMAPHORE.synchronize do
|
18
|
+
@config ||= create
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
9
22
|
# @param processor [Saxon::Processor] a Saxon::Processor instance
|
10
23
|
# @return [Saxon::Configuration]
|
11
24
|
def self.create(processor = nil)
|
25
|
+
Saxon::Loader.load!
|
12
26
|
if processor
|
13
27
|
config = processor.to_java.underlying_configuration
|
14
28
|
else
|
@@ -17,6 +31,22 @@ module Saxon
|
|
17
31
|
new(config)
|
18
32
|
end
|
19
33
|
|
34
|
+
# @param license_path [String] the absolute path to a Saxon PE or EE license file
|
35
|
+
# @return [Saxon::Configuration]
|
36
|
+
def self.create_licensed(license_path)
|
37
|
+
Saxon::Loader.load!
|
38
|
+
java_config = Saxon::S9API::Configuration.makeLicensedConfiguration(nil, nil)
|
39
|
+
config = new(java_config)
|
40
|
+
config[:LICENSE_FILE_LOCATION] = license_path
|
41
|
+
config
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.set_licensed_default!(licensed_configuration)
|
45
|
+
DEFAULT_SEMAPHORE.synchronize do
|
46
|
+
@config = licensed_configuration
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
20
50
|
# @api private
|
21
51
|
# @param config [net.sf.saxon.Configuration] The Saxon Configuration
|
22
52
|
# instance to wrap
|
@@ -46,7 +76,8 @@ module Saxon
|
|
46
76
|
# @return [Object] the value you passed in
|
47
77
|
# @raise [NameError] if the option name does not exist
|
48
78
|
def []=(option, value)
|
49
|
-
|
79
|
+
url = option_url(option)
|
80
|
+
@config.setConfigurationProperty(url, value)
|
50
81
|
end
|
51
82
|
|
52
83
|
# @return [net.sf.saxon.Configuration] The underlying Saxon Configuration
|
data/lib/saxon/loader.rb
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'java'
|
3
|
+
|
4
|
+
module Saxon
|
5
|
+
# A sensible namespace to put Saxon Java classes into
|
6
|
+
module S9API
|
7
|
+
end
|
8
|
+
|
9
|
+
module Loader
|
10
|
+
LOAD_SEMAPHORE = Mutex.new
|
11
|
+
|
12
|
+
class NoJarsError < StandardError
|
13
|
+
def initialize(path)
|
14
|
+
@path = path
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
"The path ('#{@path}') you supplied for the Saxon .jar files doesn't exist, sorry"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class MissingJarError < StandardError
|
23
|
+
def initialize(path)
|
24
|
+
@path = path
|
25
|
+
end
|
26
|
+
|
27
|
+
def to_s
|
28
|
+
"One of saxon9he.jar, saxon9pe.jar, or saxon9ee.jar must be present in the path ('#{@path}') you supplied, sorry"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.main_jar(path)
|
33
|
+
['saxon9he.jar', 'saxon9pe.jar', 'saxon9ee.jar'].map { |jar| path.join(jar) }.find { |jar| jar.file? }
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.extra_jars(path)
|
37
|
+
optional = ['saxon9-unpack.jar', 'saxon9-sql.jar'].map { |jar| path.join(jar) }.select { |jar| jar.file? }
|
38
|
+
icu = path.children.find { |jar| jar.extname == '.jar' && !jar.basename.to_s.match(/^saxon-icu|^icu4j/).nil? }
|
39
|
+
([icu] + optional).compact
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.load!(saxon_home = File.expand_path('../../../vendor/saxonica', __FILE__))
|
43
|
+
return false if @saxon_loaded
|
44
|
+
LOAD_SEMAPHORE.synchronize do
|
45
|
+
if Saxon::S9API.const_defined?(:Processor)
|
46
|
+
false
|
47
|
+
else
|
48
|
+
saxon_home = Pathname.new(saxon_home)
|
49
|
+
raise NoJarsError, saxon_home unless saxon_home.directory?
|
50
|
+
jars = [main_jar(saxon_home)].compact
|
51
|
+
raise MissingJarError if jars.empty?
|
52
|
+
jars += extra_jars(saxon_home)
|
53
|
+
|
54
|
+
add_jars_to_classpath!(saxon_home, jars)
|
55
|
+
import_classes_to_namespace!
|
56
|
+
|
57
|
+
@saxon_loaded = true
|
58
|
+
true
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
def self.add_jars_to_classpath!(saxon_home, jars)
|
66
|
+
jars.each do |jar|
|
67
|
+
$CLASSPATH << jar.to_s
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def self.import_classes_to_namespace!
|
72
|
+
Saxon::S9API.class_eval do
|
73
|
+
java_import 'net.sf.saxon.s9api.Processor'
|
74
|
+
java_import 'net.sf.saxon.Configuration'
|
75
|
+
java_import 'net.sf.saxon.lib.FeatureKeys'
|
76
|
+
java_import 'net.sf.saxon.s9api.XdmNode'
|
77
|
+
java_import 'net.sf.saxon.s9api.XdmNodeKind'
|
78
|
+
java_import 'net.sf.saxon.s9api.XdmDestination'
|
79
|
+
java_import 'net.sf.saxon.s9api.QName'
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
data/lib/saxon/processor.rb
CHANGED
@@ -16,7 +16,7 @@ module Saxon
|
|
16
16
|
# instance
|
17
17
|
# @return [Saxon::Processor]
|
18
18
|
def self.default
|
19
|
-
@processor ||= create
|
19
|
+
@processor ||= create(Saxon::Configuration.default)
|
20
20
|
end
|
21
21
|
|
22
22
|
# @param config [File, String, IO, Saxon::Configuration] an open File, or string,
|
@@ -24,6 +24,7 @@ module Saxon
|
|
24
24
|
# object
|
25
25
|
# @return [Saxon::Processor]
|
26
26
|
def self.create(config = nil)
|
27
|
+
Saxon::Loader.load!
|
27
28
|
case config
|
28
29
|
when nil
|
29
30
|
licensed_or_config_source = false
|
data/lib/saxon/s9api.rb
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
require '
|
2
|
-
$CLASSPATH << File.expand_path('../../../vendor/saxonica/saxon9he.jar', __FILE__)
|
3
|
-
$CLASSPATH << File.expand_path('../../../vendor/saxonica/saxon9-unpack.jar', __FILE__)
|
1
|
+
require 'saxon/loader'
|
4
2
|
|
5
3
|
module Saxon
|
6
|
-
# Puts the Saxon Java classes into a sensible namespace
|
7
4
|
module S9API
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
def self.const_missing(name)
|
6
|
+
Saxon::Loader.load!
|
7
|
+
if const_defined?(name)
|
8
|
+
const_get(name)
|
9
|
+
else
|
10
|
+
msg = "uninitialized constant Saxon::S9API::#{name}"
|
11
|
+
e = NameError.new(msg, name)
|
12
|
+
raise e
|
13
|
+
end
|
14
|
+
end
|
13
15
|
end
|
14
16
|
end
|
data/lib/saxon/xml.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'saxon/s9api'
|
2
1
|
require 'saxon/source_helper'
|
3
2
|
require 'saxon/processor'
|
4
3
|
|
@@ -13,6 +12,9 @@ module Saxon
|
|
13
12
|
|
14
13
|
module XML
|
15
14
|
# Parse an XML File or String into a Document object
|
15
|
+
# @!attribute [r] processor
|
16
|
+
# @return [Saxon::Processor] return the processor used to create this
|
17
|
+
# document
|
16
18
|
class Document
|
17
19
|
# @api private
|
18
20
|
# @param [Saxon::Processor] processor The processor object which should
|
@@ -24,9 +26,13 @@ module Saxon
|
|
24
26
|
builder = processor.to_java.newDocumentBuilder()
|
25
27
|
source = SourceHelper.to_stream_source(string_or_io, opts)
|
26
28
|
xdm_document = builder.build(source)
|
27
|
-
new(xdm_document)
|
29
|
+
new(xdm_document, processor)
|
28
30
|
end
|
29
31
|
|
32
|
+
# @return [Saxon::Processor] return the processor used to create this
|
33
|
+
# document
|
34
|
+
attr_reader :processor
|
35
|
+
|
30
36
|
# @param [String] expr The XPath expression to evaluate
|
31
37
|
# @return [net.sf.saxon.s9api.XdmValue] return the value, node, or
|
32
38
|
# nodes selected
|
@@ -35,8 +41,8 @@ module Saxon
|
|
35
41
|
end
|
36
42
|
|
37
43
|
# @api private
|
38
|
-
def initialize(xdm_document)
|
39
|
-
@xdm_document = xdm_document
|
44
|
+
def initialize(xdm_document, processor)
|
45
|
+
@xdm_document, @processor = xdm_document, processor
|
40
46
|
end
|
41
47
|
|
42
48
|
# @return [net.sf.saxon.s9api.XdmNode] return the underlying Saxon
|
@@ -49,12 +55,6 @@ module Saxon
|
|
49
55
|
def to_s
|
50
56
|
@xdm_document.to_s
|
51
57
|
end
|
52
|
-
|
53
|
-
# @return [Saxon::Processor] return the processor used to create this
|
54
|
-
# document
|
55
|
-
def processor
|
56
|
-
Saxon::Processor.new(@xdm_document.processor)
|
57
|
-
end
|
58
58
|
end
|
59
59
|
end
|
60
60
|
end
|
data/lib/saxon/xslt.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'saxon/s9api'
|
2
1
|
require 'saxon/source_helper'
|
3
2
|
require 'saxon/processor'
|
4
3
|
require 'saxon/xml'
|
@@ -14,6 +13,9 @@ module Saxon
|
|
14
13
|
|
15
14
|
module XSLT
|
16
15
|
# a Stylesheet transforms input (XML) into output
|
16
|
+
# @!attribute [r] processor
|
17
|
+
# @return [Saxon::Processor] return the processor used to create the
|
18
|
+
# source of this transformer
|
17
19
|
class Stylesheet
|
18
20
|
# @api private
|
19
21
|
# @param processor [Saxon::Processor] the Saxon processor object
|
@@ -34,9 +36,11 @@ module Saxon
|
|
34
36
|
new(document)
|
35
37
|
end
|
36
38
|
|
39
|
+
attr_reader :processor
|
40
|
+
|
37
41
|
# @param source [Saxon::XML::Document] the input XSLT as an XML document
|
38
42
|
def initialize(source)
|
39
|
-
processor = source.processor
|
43
|
+
@processor = source.processor
|
40
44
|
compiler = processor.to_java.new_xslt_compiler()
|
41
45
|
@xslt = compiler.compile(source.to_java.as_source)
|
42
46
|
end
|
@@ -59,7 +63,7 @@ module Saxon
|
|
59
63
|
transformer.setDestination(output)
|
60
64
|
set_params(transformer, document, params)
|
61
65
|
transformer.transform
|
62
|
-
Saxon::XML::Document.new(output.getXdmNode)
|
66
|
+
Saxon::XML::Document.new(output.getXdmNode, processor)
|
63
67
|
end
|
64
68
|
|
65
69
|
# Transform an input document and return the result as a string.
|
data/lib/saxon/xslt/version.rb
CHANGED
data/saxon-licenses/CERN.txt
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
|
2
|
-
(This notice is included in the Saxon distribution because Saxon includes a QuickSort
|
3
|
-
module that was originally developed by Wolfgang Hoschek at CERN, and which was licensed
|
4
|
-
for use under the conditions specified here.)
|
5
|
-
|
6
|
-
|
7
|
-
Copyright � 1999 CERN - European Organization for Nuclear Research.
|
8
|
-
|
9
|
-
Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose
|
10
|
-
is hereby granted without fee, provided that the above copyright notice appear in all copies and
|
11
|
-
that both that copyright notice and this permission notice appear in supporting documentation.
|
12
|
-
CERN makes no representations about the suitability of this software for any purpose.
|
1
|
+
|
2
|
+
(This notice is included in the Saxon distribution because Saxon includes a QuickSort
|
3
|
+
module that was originally developed by Wolfgang Hoschek at CERN, and which was licensed
|
4
|
+
for use under the conditions specified here.)
|
5
|
+
|
6
|
+
|
7
|
+
Copyright � 1999 CERN - European Organization for Nuclear Research.
|
8
|
+
|
9
|
+
Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose
|
10
|
+
is hereby granted without fee, provided that the above copyright notice appear in all copies and
|
11
|
+
that both that copyright notice and this permission notice appear in supporting documentation.
|
12
|
+
CERN makes no representations about the suitability of this software for any purpose.
|
13
13
|
It is provided "as is" without expressed or implied warranty.
|
@@ -1,31 +1,31 @@
|
|
1
|
-
|
2
|
-
(This notice is included in the Saxon distribution because Saxon's XPath parser
|
3
|
-
was originally derived from an XPath parser written by James Clark and made available
|
4
|
-
under this license. The Saxon XPath parser has since diverged very substantially, but
|
5
|
-
there are traces of the original code still present.)
|
6
|
-
|
7
|
-
Copyright (c) 1998, 1999 James Clark
|
8
|
-
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
10
|
-
a copy of this software and associated documentation files (the
|
11
|
-
"Software"), to deal in the Software without restriction, including
|
12
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
13
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
14
|
-
permit persons to whom the Software is furnished to do so, subject to
|
15
|
-
the following conditions:
|
16
|
-
|
17
|
-
The above copyright notice and this permission notice shall be included
|
18
|
-
in all copies or substantial portions of the Software.
|
19
|
-
|
20
|
-
THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21
|
-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
23
|
-
IN NO EVENT SHALL JAMES CLARK BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
24
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
25
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
26
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
27
|
-
|
28
|
-
Except as contained in this notice, the name of James Clark shall
|
29
|
-
not be used in advertising or otherwise to promote the sale, use or
|
30
|
-
other dealings in this Software without prior written authorization
|
31
|
-
from James Clark.
|
1
|
+
|
2
|
+
(This notice is included in the Saxon distribution because Saxon's XPath parser
|
3
|
+
was originally derived from an XPath parser written by James Clark and made available
|
4
|
+
under this license. The Saxon XPath parser has since diverged very substantially, but
|
5
|
+
there are traces of the original code still present.)
|
6
|
+
|
7
|
+
Copyright (c) 1998, 1999 James Clark
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
10
|
+
a copy of this software and associated documentation files (the
|
11
|
+
"Software"), to deal in the Software without restriction, including
|
12
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
13
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
14
|
+
permit persons to whom the Software is furnished to do so, subject to
|
15
|
+
the following conditions:
|
16
|
+
|
17
|
+
The above copyright notice and this permission notice shall be included
|
18
|
+
in all copies or substantial portions of the Software.
|
19
|
+
|
20
|
+
THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
23
|
+
IN NO EVENT SHALL JAMES CLARK BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
24
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
25
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
26
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
27
|
+
|
28
|
+
Except as contained in this notice, the name of James Clark shall
|
29
|
+
not be used in advertising or otherwise to promote the sale, use or
|
30
|
+
other dealings in this Software without prior written authorization
|
31
|
+
from James Clark.
|
data/saxon-licenses/LICENSE.txt
CHANGED
@@ -1,377 +1,377 @@
|
|
1
|
-
Most of the open source code in the Saxon product is governed by the Mozilla Public
|
2
|
-
License version 2.0, which is reproduced below.
|
3
|
-
|
4
|
-
|
5
|
-
Mozilla Public License Version 2.0
|
6
|
-
==================================
|
7
|
-
|
8
|
-
1. Definitions
|
9
|
-
--------------
|
10
|
-
|
11
|
-
1.1. "Contributor"
|
12
|
-
means each individual or legal entity that creates, contributes to
|
13
|
-
the creation of, or owns Covered Software.
|
14
|
-
|
15
|
-
1.2. "Contributor Version"
|
16
|
-
means the combination of the Contributions of others (if any) used
|
17
|
-
by a Contributor and that particular Contributor's Contribution.
|
18
|
-
|
19
|
-
1.3. "Contribution"
|
20
|
-
means Covered Software of a particular Contributor.
|
21
|
-
|
22
|
-
1.4. "Covered Software"
|
23
|
-
means Source Code Form to which the initial Contributor has attached
|
24
|
-
the notice in Exhibit A, the Executable Form of such Source Code
|
25
|
-
Form, and Modifications of such Source Code Form, in each case
|
26
|
-
including portions thereof.
|
27
|
-
|
28
|
-
1.5. "Incompatible With Secondary Licenses"
|
29
|
-
means
|
30
|
-
|
31
|
-
(a) that the initial Contributor has attached the notice described
|
32
|
-
in Exhibit B to the Covered Software; or
|
33
|
-
|
34
|
-
(b) that the Covered Software was made available under the terms of
|
35
|
-
version 1.1 or earlier of the License, but not also under the
|
36
|
-
terms of a Secondary License.
|
37
|
-
|
38
|
-
1.6. "Executable Form"
|
39
|
-
means any form of the work other than Source Code Form.
|
40
|
-
|
41
|
-
1.7. "Larger Work"
|
42
|
-
means a work that combines Covered Software with other material, in
|
43
|
-
a separate file or files, that is not Covered Software.
|
44
|
-
|
45
|
-
1.8. "License"
|
46
|
-
means this document.
|
47
|
-
|
48
|
-
1.9. "Licensable"
|
49
|
-
means having the right to grant, to the maximum extent possible,
|
50
|
-
whether at the time of the initial grant or subsequently, any and
|
51
|
-
all of the rights conveyed by this License.
|
52
|
-
|
53
|
-
1.10. "Modifications"
|
54
|
-
means any of the following:
|
55
|
-
|
56
|
-
(a) any file in Source Code Form that results from an addition to,
|
57
|
-
deletion from, or modification of the contents of Covered
|
58
|
-
Software; or
|
59
|
-
|
60
|
-
(b) any new file in Source Code Form that contains any Covered
|
61
|
-
Software.
|
62
|
-
|
63
|
-
1.11. "Patent Claims" of a Contributor
|
64
|
-
means any patent claim(s), including without limitation, method,
|
65
|
-
process, and apparatus claims, in any patent Licensable by such
|
66
|
-
Contributor that would be infringed, but for the grant of the
|
67
|
-
License, by the making, using, selling, offering for sale, having
|
68
|
-
made, import, or transfer of either its Contributions or its
|
69
|
-
Contributor Version.
|
70
|
-
|
71
|
-
1.12. "Secondary License"
|
72
|
-
means either the GNU General Public License, Version 2.0, the GNU
|
73
|
-
Lesser General Public License, Version 2.1, the GNU Affero General
|
74
|
-
Public License, Version 3.0, or any later versions of those
|
75
|
-
licenses.
|
76
|
-
|
77
|
-
1.13. "Source Code Form"
|
78
|
-
means the form of the work preferred for making modifications.
|
79
|
-
|
80
|
-
1.14. "You" (or "Your")
|
81
|
-
means an individual or a legal entity exercising rights under this
|
82
|
-
License. For legal entities, "You" includes any entity that
|
83
|
-
controls, is controlled by, or is under common control with You. For
|
84
|
-
purposes of this definition, "control" means (a) the power, direct
|
85
|
-
or indirect, to cause the direction or management of such entity,
|
86
|
-
whether by contract or otherwise, or (b) ownership of more than
|
87
|
-
fifty percent (50%) of the outstanding shares or beneficial
|
88
|
-
ownership of such entity.
|
89
|
-
|
90
|
-
2. License Grants and Conditions
|
91
|
-
--------------------------------
|
92
|
-
|
93
|
-
2.1. Grants
|
94
|
-
|
95
|
-
Each Contributor hereby grants You a world-wide, royalty-free,
|
96
|
-
non-exclusive license:
|
97
|
-
|
98
|
-
(a) under intellectual property rights (other than patent or trademark)
|
99
|
-
Licensable by such Contributor to use, reproduce, make available,
|
100
|
-
modify, display, perform, distribute, and otherwise exploit its
|
101
|
-
Contributions, either on an unmodified basis, with Modifications, or
|
102
|
-
as part of a Larger Work; and
|
103
|
-
|
104
|
-
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
105
|
-
for sale, have made, import, and otherwise transfer either its
|
106
|
-
Contributions or its Contributor Version.
|
107
|
-
|
108
|
-
2.2. Effective Date
|
109
|
-
|
110
|
-
The licenses granted in Section 2.1 with respect to any Contribution
|
111
|
-
become effective for each Contribution on the date the Contributor first
|
112
|
-
distributes such Contribution.
|
113
|
-
|
114
|
-
2.3. Limitations on Grant Scope
|
115
|
-
|
116
|
-
The licenses granted in this Section 2 are the only rights granted under
|
117
|
-
this License. No additional rights or licenses will be implied from the
|
118
|
-
distribution or licensing of Covered Software under this License.
|
119
|
-
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
120
|
-
Contributor:
|
121
|
-
|
122
|
-
(a) for any code that a Contributor has removed from Covered Software;
|
123
|
-
or
|
124
|
-
|
125
|
-
(b) for infringements caused by: (i) Your and any other third party's
|
126
|
-
modifications of Covered Software, or (ii) the combination of its
|
127
|
-
Contributions with other software (except as part of its Contributor
|
128
|
-
Version); or
|
129
|
-
|
130
|
-
(c) under Patent Claims infringed by Covered Software in the absence of
|
131
|
-
its Contributions.
|
132
|
-
|
133
|
-
This License does not grant any rights in the trademarks, service marks,
|
134
|
-
or logos of any Contributor (except as may be necessary to comply with
|
135
|
-
the notice requirements in Section 3.4).
|
136
|
-
|
137
|
-
2.4. Subsequent Licenses
|
138
|
-
|
139
|
-
No Contributor makes additional grants as a result of Your choice to
|
140
|
-
distribute the Covered Software under a subsequent version of this
|
141
|
-
License (see Section 10.2) or under the terms of a Secondary License (if
|
142
|
-
permitted under the terms of Section 3.3).
|
143
|
-
|
144
|
-
2.5. Representation
|
145
|
-
|
146
|
-
Each Contributor represents that the Contributor believes its
|
147
|
-
Contributions are its original creation(s) or it has sufficient rights
|
148
|
-
to grant the rights to its Contributions conveyed by this License.
|
149
|
-
|
150
|
-
2.6. Fair Use
|
151
|
-
|
152
|
-
This License is not intended to limit any rights You have under
|
153
|
-
applicable copyright doctrines of fair use, fair dealing, or other
|
154
|
-
equivalents.
|
155
|
-
|
156
|
-
2.7. Conditions
|
157
|
-
|
158
|
-
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
159
|
-
in Section 2.1.
|
160
|
-
|
161
|
-
3. Responsibilities
|
162
|
-
-------------------
|
163
|
-
|
164
|
-
3.1. Distribution of Source Form
|
165
|
-
|
166
|
-
All distribution of Covered Software in Source Code Form, including any
|
167
|
-
Modifications that You create or to which You contribute, must be under
|
168
|
-
the terms of this License. You must inform recipients that the Source
|
169
|
-
Code Form of the Covered Software is governed by the terms of this
|
170
|
-
License, and how they can obtain a copy of this License. You may not
|
171
|
-
attempt to alter or restrict the recipients' rights in the Source Code
|
172
|
-
Form.
|
173
|
-
|
174
|
-
3.2. Distribution of Executable Form
|
175
|
-
|
176
|
-
If You distribute Covered Software in Executable Form then:
|
177
|
-
|
178
|
-
(a) such Covered Software must also be made available in Source Code
|
179
|
-
Form, as described in Section 3.1, and You must inform recipients of
|
180
|
-
the Executable Form how they can obtain a copy of such Source Code
|
181
|
-
Form by reasonable means in a timely manner, at a charge no more
|
182
|
-
than the cost of distribution to the recipient; and
|
183
|
-
|
184
|
-
(b) You may distribute such Executable Form under the terms of this
|
185
|
-
License, or sublicense it under different terms, provided that the
|
186
|
-
license for the Executable Form does not attempt to limit or alter
|
187
|
-
the recipients' rights in the Source Code Form under this License.
|
188
|
-
|
189
|
-
3.3. Distribution of a Larger Work
|
190
|
-
|
191
|
-
You may create and distribute a Larger Work under terms of Your choice,
|
192
|
-
provided that You also comply with the requirements of this License for
|
193
|
-
the Covered Software. If the Larger Work is a combination of Covered
|
194
|
-
Software with a work governed by one or more Secondary Licenses, and the
|
195
|
-
Covered Software is not Incompatible With Secondary Licenses, this
|
196
|
-
License permits You to additionally distribute such Covered Software
|
197
|
-
under the terms of such Secondary License(s), so that the recipient of
|
198
|
-
the Larger Work may, at their option, further distribute the Covered
|
199
|
-
Software under the terms of either this License or such Secondary
|
200
|
-
License(s).
|
201
|
-
|
202
|
-
3.4. Notices
|
203
|
-
|
204
|
-
You may not remove or alter the substance of any license notices
|
205
|
-
(including copyright notices, patent notices, disclaimers of warranty,
|
206
|
-
or limitations of liability) contained within the Source Code Form of
|
207
|
-
the Covered Software, except that You may alter any license notices to
|
208
|
-
the extent required to remedy known factual inaccuracies.
|
209
|
-
|
210
|
-
3.5. Application of Additional Terms
|
211
|
-
|
212
|
-
You may choose to offer, and to charge a fee for, warranty, support,
|
213
|
-
indemnity or liability obligations to one or more recipients of Covered
|
214
|
-
Software. However, You may do so only on Your own behalf, and not on
|
215
|
-
behalf of any Contributor. You must make it absolutely clear that any
|
216
|
-
such warranty, support, indemnity, or liability obligation is offered by
|
217
|
-
You alone, and You hereby agree to indemnify every Contributor for any
|
218
|
-
liability incurred by such Contributor as a result of warranty, support,
|
219
|
-
indemnity or liability terms You offer. You may include additional
|
220
|
-
disclaimers of warranty and limitations of liability specific to any
|
221
|
-
jurisdiction.
|
222
|
-
|
223
|
-
4. Inability to Comply Due to Statute or Regulation
|
224
|
-
---------------------------------------------------
|
225
|
-
|
226
|
-
If it is impossible for You to comply with any of the terms of this
|
227
|
-
License with respect to some or all of the Covered Software due to
|
228
|
-
statute, judicial order, or regulation then You must: (a) comply with
|
229
|
-
the terms of this License to the maximum extent possible; and (b)
|
230
|
-
describe the limitations and the code they affect. Such description must
|
231
|
-
be placed in a text file included with all distributions of the Covered
|
232
|
-
Software under this License. Except to the extent prohibited by statute
|
233
|
-
or regulation, such description must be sufficiently detailed for a
|
234
|
-
recipient of ordinary skill to be able to understand it.
|
235
|
-
|
236
|
-
5. Termination
|
237
|
-
--------------
|
238
|
-
|
239
|
-
5.1. The rights granted under this License will terminate automatically
|
240
|
-
if You fail to comply with any of its terms. However, if You become
|
241
|
-
compliant, then the rights granted under this License from a particular
|
242
|
-
Contributor are reinstated (a) provisionally, unless and until such
|
243
|
-
Contributor explicitly and finally terminates Your grants, and (b) on an
|
244
|
-
ongoing basis, if such Contributor fails to notify You of the
|
245
|
-
non-compliance by some reasonable means prior to 60 days after You have
|
246
|
-
come back into compliance. Moreover, Your grants from a particular
|
247
|
-
Contributor are reinstated on an ongoing basis if such Contributor
|
248
|
-
notifies You of the non-compliance by some reasonable means, this is the
|
249
|
-
first time You have received notice of non-compliance with this License
|
250
|
-
from such Contributor, and You become compliant prior to 30 days after
|
251
|
-
Your receipt of the notice.
|
252
|
-
|
253
|
-
5.2. If You initiate litigation against any entity by asserting a patent
|
254
|
-
infringement claim (excluding declaratory judgment actions,
|
255
|
-
counter-claims, and cross-claims) alleging that a Contributor Version
|
256
|
-
directly or indirectly infringes any patent, then the rights granted to
|
257
|
-
You by any and all Contributors for the Covered Software under Section
|
258
|
-
2.1 of this License shall terminate.
|
259
|
-
|
260
|
-
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
261
|
-
end user license agreements (excluding distributors and resellers) which
|
262
|
-
have been validly granted by You or Your distributors under this License
|
263
|
-
prior to termination shall survive termination.
|
264
|
-
|
265
|
-
************************************************************************
|
266
|
-
* *
|
267
|
-
* 6. Disclaimer of Warranty *
|
268
|
-
* ------------------------- *
|
269
|
-
* *
|
270
|
-
* Covered Software is provided under this License on an "as is" *
|
271
|
-
* basis, without warranty of any kind, either expressed, implied, or *
|
272
|
-
* statutory, including, without limitation, warranties that the *
|
273
|
-
* Covered Software is free of defects, merchantable, fit for a *
|
274
|
-
* particular purpose or non-infringing. The entire risk as to the *
|
275
|
-
* quality and performance of the Covered Software is with You. *
|
276
|
-
* Should any Covered Software prove defective in any respect, You *
|
277
|
-
* (not any Contributor) assume the cost of any necessary servicing, *
|
278
|
-
* repair, or correction. This disclaimer of warranty constitutes an *
|
279
|
-
* essential part of this License. No use of any Covered Software is *
|
280
|
-
* authorized under this License except under this disclaimer. *
|
281
|
-
* *
|
282
|
-
************************************************************************
|
283
|
-
|
284
|
-
************************************************************************
|
285
|
-
* *
|
286
|
-
* 7. Limitation of Liability *
|
287
|
-
* -------------------------- *
|
288
|
-
* *
|
289
|
-
* Under no circumstances and under no legal theory, whether tort *
|
290
|
-
* (including negligence), contract, or otherwise, shall any *
|
291
|
-
* Contributor, or anyone who distributes Covered Software as *
|
292
|
-
* permitted above, be liable to You for any direct, indirect, *
|
293
|
-
* special, incidental, or consequential damages of any character *
|
294
|
-
* including, without limitation, damages for lost profits, loss of *
|
295
|
-
* goodwill, work stoppage, computer failure or malfunction, or any *
|
296
|
-
* and all other commercial damages or losses, even if such party *
|
297
|
-
* shall have been informed of the possibility of such damages. This *
|
298
|
-
* limitation of liability shall not apply to liability for death or *
|
299
|
-
* personal injury resulting from such party's negligence to the *
|
300
|
-
* extent applicable law prohibits such limitation. Some *
|
301
|
-
* jurisdictions do not allow the exclusion or limitation of *
|
302
|
-
* incidental or consequential damages, so this exclusion and *
|
303
|
-
* limitation may not apply to You. *
|
304
|
-
* *
|
305
|
-
************************************************************************
|
306
|
-
|
307
|
-
8. Litigation
|
308
|
-
-------------
|
309
|
-
|
310
|
-
Any litigation relating to this License may be brought only in the
|
311
|
-
courts of a jurisdiction where the defendant maintains its principal
|
312
|
-
place of business and such litigation shall be governed by laws of that
|
313
|
-
jurisdiction, without reference to its conflict-of-law provisions.
|
314
|
-
Nothing in this Section shall prevent a party's ability to bring
|
315
|
-
cross-claims or counter-claims.
|
316
|
-
|
317
|
-
9. Miscellaneous
|
318
|
-
----------------
|
319
|
-
|
320
|
-
This License represents the complete agreement concerning the subject
|
321
|
-
matter hereof. If any provision of this License is held to be
|
322
|
-
unenforceable, such provision shall be reformed only to the extent
|
323
|
-
necessary to make it enforceable. Any law or regulation which provides
|
324
|
-
that the language of a contract shall be construed against the drafter
|
325
|
-
shall not be used to construe this License against a Contributor.
|
326
|
-
|
327
|
-
10. Versions of the License
|
328
|
-
---------------------------
|
329
|
-
|
330
|
-
10.1. New Versions
|
331
|
-
|
332
|
-
Mozilla Foundation is the license steward. Except as provided in Section
|
333
|
-
10.3, no one other than the license steward has the right to modify or
|
334
|
-
publish new versions of this License. Each version will be given a
|
335
|
-
distinguishing version number.
|
336
|
-
|
337
|
-
10.2. Effect of New Versions
|
338
|
-
|
339
|
-
You may distribute the Covered Software under the terms of the version
|
340
|
-
of the License under which You originally received the Covered Software,
|
341
|
-
or under the terms of any subsequent version published by the license
|
342
|
-
steward.
|
343
|
-
|
344
|
-
10.3. Modified Versions
|
345
|
-
|
346
|
-
If you create software not governed by this License, and you want to
|
347
|
-
create a new license for such software, you may create and use a
|
348
|
-
modified version of this License if you rename the license and remove
|
349
|
-
any references to the name of the license steward (except to note that
|
350
|
-
such modified license differs from this License).
|
351
|
-
|
352
|
-
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
353
|
-
Licenses
|
354
|
-
|
355
|
-
If You choose to distribute Source Code Form that is Incompatible With
|
356
|
-
Secondary Licenses under the terms of this version of the License, the
|
357
|
-
notice described in Exhibit B of this License must be attached.
|
358
|
-
|
359
|
-
Exhibit A - Source Code Form License Notice
|
360
|
-
-------------------------------------------
|
361
|
-
|
362
|
-
This Source Code Form is subject to the terms of the Mozilla Public
|
363
|
-
License, v. 2.0. If a copy of the MPL was not distributed with this
|
364
|
-
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
365
|
-
|
366
|
-
If it is not possible or desirable to put the notice in a particular
|
367
|
-
file, then You may include the notice in a location (such as a LICENSE
|
368
|
-
file in a relevant directory) where a recipient would be likely to look
|
369
|
-
for such a notice.
|
370
|
-
|
371
|
-
You may add additional accurate notices of copyright ownership.
|
372
|
-
|
373
|
-
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
374
|
-
---------------------------------------------------------
|
375
|
-
|
376
|
-
This Source Code Form is "Incompatible With Secondary Licenses", as
|
1
|
+
Most of the open source code in the Saxon product is governed by the Mozilla Public
|
2
|
+
License version 2.0, which is reproduced below.
|
3
|
+
|
4
|
+
|
5
|
+
Mozilla Public License Version 2.0
|
6
|
+
==================================
|
7
|
+
|
8
|
+
1. Definitions
|
9
|
+
--------------
|
10
|
+
|
11
|
+
1.1. "Contributor"
|
12
|
+
means each individual or legal entity that creates, contributes to
|
13
|
+
the creation of, or owns Covered Software.
|
14
|
+
|
15
|
+
1.2. "Contributor Version"
|
16
|
+
means the combination of the Contributions of others (if any) used
|
17
|
+
by a Contributor and that particular Contributor's Contribution.
|
18
|
+
|
19
|
+
1.3. "Contribution"
|
20
|
+
means Covered Software of a particular Contributor.
|
21
|
+
|
22
|
+
1.4. "Covered Software"
|
23
|
+
means Source Code Form to which the initial Contributor has attached
|
24
|
+
the notice in Exhibit A, the Executable Form of such Source Code
|
25
|
+
Form, and Modifications of such Source Code Form, in each case
|
26
|
+
including portions thereof.
|
27
|
+
|
28
|
+
1.5. "Incompatible With Secondary Licenses"
|
29
|
+
means
|
30
|
+
|
31
|
+
(a) that the initial Contributor has attached the notice described
|
32
|
+
in Exhibit B to the Covered Software; or
|
33
|
+
|
34
|
+
(b) that the Covered Software was made available under the terms of
|
35
|
+
version 1.1 or earlier of the License, but not also under the
|
36
|
+
terms of a Secondary License.
|
37
|
+
|
38
|
+
1.6. "Executable Form"
|
39
|
+
means any form of the work other than Source Code Form.
|
40
|
+
|
41
|
+
1.7. "Larger Work"
|
42
|
+
means a work that combines Covered Software with other material, in
|
43
|
+
a separate file or files, that is not Covered Software.
|
44
|
+
|
45
|
+
1.8. "License"
|
46
|
+
means this document.
|
47
|
+
|
48
|
+
1.9. "Licensable"
|
49
|
+
means having the right to grant, to the maximum extent possible,
|
50
|
+
whether at the time of the initial grant or subsequently, any and
|
51
|
+
all of the rights conveyed by this License.
|
52
|
+
|
53
|
+
1.10. "Modifications"
|
54
|
+
means any of the following:
|
55
|
+
|
56
|
+
(a) any file in Source Code Form that results from an addition to,
|
57
|
+
deletion from, or modification of the contents of Covered
|
58
|
+
Software; or
|
59
|
+
|
60
|
+
(b) any new file in Source Code Form that contains any Covered
|
61
|
+
Software.
|
62
|
+
|
63
|
+
1.11. "Patent Claims" of a Contributor
|
64
|
+
means any patent claim(s), including without limitation, method,
|
65
|
+
process, and apparatus claims, in any patent Licensable by such
|
66
|
+
Contributor that would be infringed, but for the grant of the
|
67
|
+
License, by the making, using, selling, offering for sale, having
|
68
|
+
made, import, or transfer of either its Contributions or its
|
69
|
+
Contributor Version.
|
70
|
+
|
71
|
+
1.12. "Secondary License"
|
72
|
+
means either the GNU General Public License, Version 2.0, the GNU
|
73
|
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
74
|
+
Public License, Version 3.0, or any later versions of those
|
75
|
+
licenses.
|
76
|
+
|
77
|
+
1.13. "Source Code Form"
|
78
|
+
means the form of the work preferred for making modifications.
|
79
|
+
|
80
|
+
1.14. "You" (or "Your")
|
81
|
+
means an individual or a legal entity exercising rights under this
|
82
|
+
License. For legal entities, "You" includes any entity that
|
83
|
+
controls, is controlled by, or is under common control with You. For
|
84
|
+
purposes of this definition, "control" means (a) the power, direct
|
85
|
+
or indirect, to cause the direction or management of such entity,
|
86
|
+
whether by contract or otherwise, or (b) ownership of more than
|
87
|
+
fifty percent (50%) of the outstanding shares or beneficial
|
88
|
+
ownership of such entity.
|
89
|
+
|
90
|
+
2. License Grants and Conditions
|
91
|
+
--------------------------------
|
92
|
+
|
93
|
+
2.1. Grants
|
94
|
+
|
95
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
96
|
+
non-exclusive license:
|
97
|
+
|
98
|
+
(a) under intellectual property rights (other than patent or trademark)
|
99
|
+
Licensable by such Contributor to use, reproduce, make available,
|
100
|
+
modify, display, perform, distribute, and otherwise exploit its
|
101
|
+
Contributions, either on an unmodified basis, with Modifications, or
|
102
|
+
as part of a Larger Work; and
|
103
|
+
|
104
|
+
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
105
|
+
for sale, have made, import, and otherwise transfer either its
|
106
|
+
Contributions or its Contributor Version.
|
107
|
+
|
108
|
+
2.2. Effective Date
|
109
|
+
|
110
|
+
The licenses granted in Section 2.1 with respect to any Contribution
|
111
|
+
become effective for each Contribution on the date the Contributor first
|
112
|
+
distributes such Contribution.
|
113
|
+
|
114
|
+
2.3. Limitations on Grant Scope
|
115
|
+
|
116
|
+
The licenses granted in this Section 2 are the only rights granted under
|
117
|
+
this License. No additional rights or licenses will be implied from the
|
118
|
+
distribution or licensing of Covered Software under this License.
|
119
|
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
120
|
+
Contributor:
|
121
|
+
|
122
|
+
(a) for any code that a Contributor has removed from Covered Software;
|
123
|
+
or
|
124
|
+
|
125
|
+
(b) for infringements caused by: (i) Your and any other third party's
|
126
|
+
modifications of Covered Software, or (ii) the combination of its
|
127
|
+
Contributions with other software (except as part of its Contributor
|
128
|
+
Version); or
|
129
|
+
|
130
|
+
(c) under Patent Claims infringed by Covered Software in the absence of
|
131
|
+
its Contributions.
|
132
|
+
|
133
|
+
This License does not grant any rights in the trademarks, service marks,
|
134
|
+
or logos of any Contributor (except as may be necessary to comply with
|
135
|
+
the notice requirements in Section 3.4).
|
136
|
+
|
137
|
+
2.4. Subsequent Licenses
|
138
|
+
|
139
|
+
No Contributor makes additional grants as a result of Your choice to
|
140
|
+
distribute the Covered Software under a subsequent version of this
|
141
|
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
142
|
+
permitted under the terms of Section 3.3).
|
143
|
+
|
144
|
+
2.5. Representation
|
145
|
+
|
146
|
+
Each Contributor represents that the Contributor believes its
|
147
|
+
Contributions are its original creation(s) or it has sufficient rights
|
148
|
+
to grant the rights to its Contributions conveyed by this License.
|
149
|
+
|
150
|
+
2.6. Fair Use
|
151
|
+
|
152
|
+
This License is not intended to limit any rights You have under
|
153
|
+
applicable copyright doctrines of fair use, fair dealing, or other
|
154
|
+
equivalents.
|
155
|
+
|
156
|
+
2.7. Conditions
|
157
|
+
|
158
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
159
|
+
in Section 2.1.
|
160
|
+
|
161
|
+
3. Responsibilities
|
162
|
+
-------------------
|
163
|
+
|
164
|
+
3.1. Distribution of Source Form
|
165
|
+
|
166
|
+
All distribution of Covered Software in Source Code Form, including any
|
167
|
+
Modifications that You create or to which You contribute, must be under
|
168
|
+
the terms of this License. You must inform recipients that the Source
|
169
|
+
Code Form of the Covered Software is governed by the terms of this
|
170
|
+
License, and how they can obtain a copy of this License. You may not
|
171
|
+
attempt to alter or restrict the recipients' rights in the Source Code
|
172
|
+
Form.
|
173
|
+
|
174
|
+
3.2. Distribution of Executable Form
|
175
|
+
|
176
|
+
If You distribute Covered Software in Executable Form then:
|
177
|
+
|
178
|
+
(a) such Covered Software must also be made available in Source Code
|
179
|
+
Form, as described in Section 3.1, and You must inform recipients of
|
180
|
+
the Executable Form how they can obtain a copy of such Source Code
|
181
|
+
Form by reasonable means in a timely manner, at a charge no more
|
182
|
+
than the cost of distribution to the recipient; and
|
183
|
+
|
184
|
+
(b) You may distribute such Executable Form under the terms of this
|
185
|
+
License, or sublicense it under different terms, provided that the
|
186
|
+
license for the Executable Form does not attempt to limit or alter
|
187
|
+
the recipients' rights in the Source Code Form under this License.
|
188
|
+
|
189
|
+
3.3. Distribution of a Larger Work
|
190
|
+
|
191
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
192
|
+
provided that You also comply with the requirements of this License for
|
193
|
+
the Covered Software. If the Larger Work is a combination of Covered
|
194
|
+
Software with a work governed by one or more Secondary Licenses, and the
|
195
|
+
Covered Software is not Incompatible With Secondary Licenses, this
|
196
|
+
License permits You to additionally distribute such Covered Software
|
197
|
+
under the terms of such Secondary License(s), so that the recipient of
|
198
|
+
the Larger Work may, at their option, further distribute the Covered
|
199
|
+
Software under the terms of either this License or such Secondary
|
200
|
+
License(s).
|
201
|
+
|
202
|
+
3.4. Notices
|
203
|
+
|
204
|
+
You may not remove or alter the substance of any license notices
|
205
|
+
(including copyright notices, patent notices, disclaimers of warranty,
|
206
|
+
or limitations of liability) contained within the Source Code Form of
|
207
|
+
the Covered Software, except that You may alter any license notices to
|
208
|
+
the extent required to remedy known factual inaccuracies.
|
209
|
+
|
210
|
+
3.5. Application of Additional Terms
|
211
|
+
|
212
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
213
|
+
indemnity or liability obligations to one or more recipients of Covered
|
214
|
+
Software. However, You may do so only on Your own behalf, and not on
|
215
|
+
behalf of any Contributor. You must make it absolutely clear that any
|
216
|
+
such warranty, support, indemnity, or liability obligation is offered by
|
217
|
+
You alone, and You hereby agree to indemnify every Contributor for any
|
218
|
+
liability incurred by such Contributor as a result of warranty, support,
|
219
|
+
indemnity or liability terms You offer. You may include additional
|
220
|
+
disclaimers of warranty and limitations of liability specific to any
|
221
|
+
jurisdiction.
|
222
|
+
|
223
|
+
4. Inability to Comply Due to Statute or Regulation
|
224
|
+
---------------------------------------------------
|
225
|
+
|
226
|
+
If it is impossible for You to comply with any of the terms of this
|
227
|
+
License with respect to some or all of the Covered Software due to
|
228
|
+
statute, judicial order, or regulation then You must: (a) comply with
|
229
|
+
the terms of this License to the maximum extent possible; and (b)
|
230
|
+
describe the limitations and the code they affect. Such description must
|
231
|
+
be placed in a text file included with all distributions of the Covered
|
232
|
+
Software under this License. Except to the extent prohibited by statute
|
233
|
+
or regulation, such description must be sufficiently detailed for a
|
234
|
+
recipient of ordinary skill to be able to understand it.
|
235
|
+
|
236
|
+
5. Termination
|
237
|
+
--------------
|
238
|
+
|
239
|
+
5.1. The rights granted under this License will terminate automatically
|
240
|
+
if You fail to comply with any of its terms. However, if You become
|
241
|
+
compliant, then the rights granted under this License from a particular
|
242
|
+
Contributor are reinstated (a) provisionally, unless and until such
|
243
|
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
244
|
+
ongoing basis, if such Contributor fails to notify You of the
|
245
|
+
non-compliance by some reasonable means prior to 60 days after You have
|
246
|
+
come back into compliance. Moreover, Your grants from a particular
|
247
|
+
Contributor are reinstated on an ongoing basis if such Contributor
|
248
|
+
notifies You of the non-compliance by some reasonable means, this is the
|
249
|
+
first time You have received notice of non-compliance with this License
|
250
|
+
from such Contributor, and You become compliant prior to 30 days after
|
251
|
+
Your receipt of the notice.
|
252
|
+
|
253
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
254
|
+
infringement claim (excluding declaratory judgment actions,
|
255
|
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
256
|
+
directly or indirectly infringes any patent, then the rights granted to
|
257
|
+
You by any and all Contributors for the Covered Software under Section
|
258
|
+
2.1 of this License shall terminate.
|
259
|
+
|
260
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
261
|
+
end user license agreements (excluding distributors and resellers) which
|
262
|
+
have been validly granted by You or Your distributors under this License
|
263
|
+
prior to termination shall survive termination.
|
264
|
+
|
265
|
+
************************************************************************
|
266
|
+
* *
|
267
|
+
* 6. Disclaimer of Warranty *
|
268
|
+
* ------------------------- *
|
269
|
+
* *
|
270
|
+
* Covered Software is provided under this License on an "as is" *
|
271
|
+
* basis, without warranty of any kind, either expressed, implied, or *
|
272
|
+
* statutory, including, without limitation, warranties that the *
|
273
|
+
* Covered Software is free of defects, merchantable, fit for a *
|
274
|
+
* particular purpose or non-infringing. The entire risk as to the *
|
275
|
+
* quality and performance of the Covered Software is with You. *
|
276
|
+
* Should any Covered Software prove defective in any respect, You *
|
277
|
+
* (not any Contributor) assume the cost of any necessary servicing, *
|
278
|
+
* repair, or correction. This disclaimer of warranty constitutes an *
|
279
|
+
* essential part of this License. No use of any Covered Software is *
|
280
|
+
* authorized under this License except under this disclaimer. *
|
281
|
+
* *
|
282
|
+
************************************************************************
|
283
|
+
|
284
|
+
************************************************************************
|
285
|
+
* *
|
286
|
+
* 7. Limitation of Liability *
|
287
|
+
* -------------------------- *
|
288
|
+
* *
|
289
|
+
* Under no circumstances and under no legal theory, whether tort *
|
290
|
+
* (including negligence), contract, or otherwise, shall any *
|
291
|
+
* Contributor, or anyone who distributes Covered Software as *
|
292
|
+
* permitted above, be liable to You for any direct, indirect, *
|
293
|
+
* special, incidental, or consequential damages of any character *
|
294
|
+
* including, without limitation, damages for lost profits, loss of *
|
295
|
+
* goodwill, work stoppage, computer failure or malfunction, or any *
|
296
|
+
* and all other commercial damages or losses, even if such party *
|
297
|
+
* shall have been informed of the possibility of such damages. This *
|
298
|
+
* limitation of liability shall not apply to liability for death or *
|
299
|
+
* personal injury resulting from such party's negligence to the *
|
300
|
+
* extent applicable law prohibits such limitation. Some *
|
301
|
+
* jurisdictions do not allow the exclusion or limitation of *
|
302
|
+
* incidental or consequential damages, so this exclusion and *
|
303
|
+
* limitation may not apply to You. *
|
304
|
+
* *
|
305
|
+
************************************************************************
|
306
|
+
|
307
|
+
8. Litigation
|
308
|
+
-------------
|
309
|
+
|
310
|
+
Any litigation relating to this License may be brought only in the
|
311
|
+
courts of a jurisdiction where the defendant maintains its principal
|
312
|
+
place of business and such litigation shall be governed by laws of that
|
313
|
+
jurisdiction, without reference to its conflict-of-law provisions.
|
314
|
+
Nothing in this Section shall prevent a party's ability to bring
|
315
|
+
cross-claims or counter-claims.
|
316
|
+
|
317
|
+
9. Miscellaneous
|
318
|
+
----------------
|
319
|
+
|
320
|
+
This License represents the complete agreement concerning the subject
|
321
|
+
matter hereof. If any provision of this License is held to be
|
322
|
+
unenforceable, such provision shall be reformed only to the extent
|
323
|
+
necessary to make it enforceable. Any law or regulation which provides
|
324
|
+
that the language of a contract shall be construed against the drafter
|
325
|
+
shall not be used to construe this License against a Contributor.
|
326
|
+
|
327
|
+
10. Versions of the License
|
328
|
+
---------------------------
|
329
|
+
|
330
|
+
10.1. New Versions
|
331
|
+
|
332
|
+
Mozilla Foundation is the license steward. Except as provided in Section
|
333
|
+
10.3, no one other than the license steward has the right to modify or
|
334
|
+
publish new versions of this License. Each version will be given a
|
335
|
+
distinguishing version number.
|
336
|
+
|
337
|
+
10.2. Effect of New Versions
|
338
|
+
|
339
|
+
You may distribute the Covered Software under the terms of the version
|
340
|
+
of the License under which You originally received the Covered Software,
|
341
|
+
or under the terms of any subsequent version published by the license
|
342
|
+
steward.
|
343
|
+
|
344
|
+
10.3. Modified Versions
|
345
|
+
|
346
|
+
If you create software not governed by this License, and you want to
|
347
|
+
create a new license for such software, you may create and use a
|
348
|
+
modified version of this License if you rename the license and remove
|
349
|
+
any references to the name of the license steward (except to note that
|
350
|
+
such modified license differs from this License).
|
351
|
+
|
352
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
353
|
+
Licenses
|
354
|
+
|
355
|
+
If You choose to distribute Source Code Form that is Incompatible With
|
356
|
+
Secondary Licenses under the terms of this version of the License, the
|
357
|
+
notice described in Exhibit B of this License must be attached.
|
358
|
+
|
359
|
+
Exhibit A - Source Code Form License Notice
|
360
|
+
-------------------------------------------
|
361
|
+
|
362
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
363
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
364
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
365
|
+
|
366
|
+
If it is not possible or desirable to put the notice in a particular
|
367
|
+
file, then You may include the notice in a location (such as a LICENSE
|
368
|
+
file in a relevant directory) where a recipient would be likely to look
|
369
|
+
for such a notice.
|
370
|
+
|
371
|
+
You may add additional accurate notices of copyright ownership.
|
372
|
+
|
373
|
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
374
|
+
---------------------------------------------------------
|
375
|
+
|
376
|
+
This Source Code Form is "Incompatible With Secondary Licenses", as
|
377
377
|
defined by the Mozilla Public License, v. 2.0.
|