[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Org schemas we talked to be non-free, was: [ELPA] New package: repol

From: Eli Zaretskii
Subject: Re: Org schemas we talked to be non-free, was: [ELPA] New package: repology.el
Date: Thu, 28 Jan 2021 16:08:58 +0200

> From: Richard Stallman <rms@gnu.org>
> Cc: ulm@gentoo.org, bugs@gnu.support, ulm@gentoo.org,
>       emacs-devel@gnu.org, ams@gnu.org, arthur.miller@live.com,
>       dgutov@yandex.ru
> Date: Thu, 28 Jan 2021 01:29:08 -0500
> Is this extension mechanism limited to adding new fields and options?
> That may be sufficient most of the time in practice, but not enough
> to make it free.

Here's an example of redefining a type.  Suppose a schema defines a
type named yearType:

  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

    <xsd:simpleType name="yearType">
      <xsd:restriction base="xsd:string"/>


Here's how you redefine yearType to force it to have 4 characters, no
more, no less:

  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

    <xsd:redefine schemaLocation="prod1.xsd">
      <xsd:simpleType name="yearType">
        <xsd:restriction base="yearType">
          <xsd:length value="4"/>

    <xsd:element name="fullYear" type="yearType"/>


where prod1.xsd is the previous schema that defines the original

reply via email to

[Prev in Thread] Current Thread [Next in Thread]