Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
#234 vesting.xsd
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 19, 2018
1 parent 0782b33 commit 3ec49c8
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 4 deletions.
6 changes: 6 additions & 0 deletions md/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ To attract programmers to your project, you can publish it on the
When your project is published, its statistical information will be visible in the Web.
You can unpublish it any time, just say `publish off`.

<a name="37" href="#37">§37</a>
"Vesting."
On top of [cash](#13) you can give equity to project contributors.
Just modify the rates in `vesting.xml` and they will automatically start
earning project equity after each job [completion](#7).

## Architect (<a name="ARC">ARC</a>)

<a name="14" href="#14">§14</a>
Expand Down
31 changes: 31 additions & 0 deletions xml/pm/cost/vesting/simple.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2018 Zerocracy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to read
the Software only. Permissions is hereby NOT GRANTED to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<vesting updated="2017-07-27T04:06:33Z" version="0.1">
<person id="yegor256">
<rate>$150</rate>
<created>2016-12-29T09:03:21.684Z</created>
</person>
<person id="dmarkov">
<rate>€100</rate>
<created>2016-12-29T09:03:21.684Z</created>
</person>
<person id="alex-palevsky">
<rate>GBP 200</rate>
<created>2016-12-29T09:03:21.684Z</created>
</person>
</vesting>
42 changes: 42 additions & 0 deletions xsd/pm/cost/vesting.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2018 Zerocracy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to read
the Software only. Permissions is hereby NOT GRANTED to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="SNAPSHOT" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="http://datum.zerocracy.com/SNAPSHOT/xsd/basics.xsd"/>
<xs:include schemaLocation="http://datum.zerocracy.com/SNAPSHOT/xsd/pmo/types.xsd"/>
<xs:include schemaLocation="http://datum.zerocracy.com/SNAPSHOT/xsd/pm/cost/types.xsd"/>
<xs:complexType name="person">
<xs:all>
<xs:element name="rate" type="cash" minOccurs="1" maxOccurs="1"/>
<xs:element name="created" minOccurs="1" maxOccurs="1" type="xs:dateTime"/>
</xs:all>
<xs:attribute name="id" type="login" use="required"/>
</xs:complexType>
<xs:element name="vesting">
<xs:complexType>
<xs:sequence>
<xs:element name="person" type="person" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="updated" use="required" type="xs:dateTime"/>
<xs:attribute name="version" use="required" type="version"/>
</xs:complexType>
<xs:unique name="idUnique">
<xs:selector xpath="person"/>
<xs:field xpath="@id"/>
</xs:unique>
</xs:element>
</xs:schema>
6 changes: 2 additions & 4 deletions xsl/pm/cost/rates.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ SOFTWARE.
</xsl:template>
<xsl:template match="rates[not(person)]">
<p>
<xsl:text>There are no rates set yet. Default rates users have in their
profiles will be used when it's time to pay them. If you want to
set user's rate, see </xsl:text>
<xsl:text>There are no rates set yet. If you want to set user's rate, see </xsl:text>
<a href="http://datum.zerocracy.com/pages/policy.html#16">
<xsl:text>§16</xsl:text>
</a>
Expand All @@ -42,7 +40,7 @@ SOFTWARE.
</xsl:template>
<xsl:template match="rates[person]">
<p>
<xsl:text>Full list of rates of people in this project.</xsl:text>
<xsl:text>Full list of rates of people in this project:</xsl:text>
</p>
<table>
<thead>
Expand Down
81 changes: 81 additions & 0 deletions xsl/pm/cost/vesting.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2018 Zerocracy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to read
the Software only. Permissions is hereby NOT GRANTED to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<xsl:include href="../../templates.xsl"/>
<xsl:template match="/">
<html lang="en">
<body>
<section>
<h1>
<xsl:text>Vesting rates</xsl:text>
</h1>
<xsl:apply-templates select="vesting"/>
</section>
</body>
</html>
</xsl:template>
<xsl:template match="vesting[not(person)]">
<p>
<xsl:text>There are no rates set yet, see </xsl:text>
<a href="http://datum.zerocracy.com/pages/policy.html#37">
<xsl:text>§37</xsl:text>
</a>
<xsl:text>.</xsl:text>
</p>
</xsl:template>
<xsl:template match="vesting[person]">
<p>
<xsl:text>Full list of vesting rates of people in this project.</xsl:text>
</p>
<table>
<thead>
<tr>
<th>
<xsl:text>User</xsl:text>
</th>
<th>
<xsl:text>Rate</xsl:text>
</th>
<th>
<xsl:text>Created</xsl:text>
</th>
</tr>
</thead>
<tbody>
<xsl:apply-templates select="person"/>
</tbody>
</table>
</xsl:template>
<xsl:template match="person">
<tr>
<td>
<xsl:call-template name="user">
<xsl:with-param name="id" select="@id"/>
</xsl:call-template>
</td>
<td>
<xsl:value-of select="rate"/>
</td>
<td>
<xsl:call-template name="date">
<xsl:with-param name="iso" select="created"/>
</xsl:call-template>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 3ec49c8

Please sign in to comment.