license element

By Opera Software

From Opera 15 onward, Opera 11 & 12’s extension format is no longer supported, and instead, we’ve switched to Chromium’s extension model. Check out our new documentation for developing extensions for Opera 15 and higher and start building your own extensions.

Description

The <license> element mentions the software license. The following attributes are associated with it.

  • href: Specifies a URL for accessing the software license

Example

The following is an example of licensing an extension under version 2 of the Apache license.

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="http://example.com/myExtension" version="1.0">
  ...
  <license href="http://www.apache.org/licenses/LICENSE-2.0">
    Copyright 2011 Erik the Viking

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  </license>
  ...
</widget>

This article is licensed under a Creative Commons Attribution 3.0 Unported license.

Comments

No new comments accepted.