Элемент license

By Андрей

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.

Описание

Элемент <license> указывает лицензию на использование программы. Ниже даны атрибуты этого элемента:

  • href: Указывает URL-адрес лицензии на програмное обеспечение.

Пример

Далее дан пример предоставления права использования расширения в соответствии с лицензией Apache версии 2.

<?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.