Developers › Dev.Opera

Элемент license

August 28, 2012 · by Opera Software, Андрей

Описание

Элемент <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>

About this article

Published inDev.Opera
DateAugust 28, 2012
AuthorOpera Software, Андрей
Tagsconfig.xml, extensions API
OriginalInternet Archive