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

Resumes #334

Merged
merged 2 commits into from
Apr 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions xml/pmo/resumes/-duplicates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<text>I'm great</text>
<personality>INTJ-A</personality>
<stackoverflow>187141</stackoverflow>
<telegram>yegor256</telegram>
</resume>
<resume login="yegor256">
<submitted>2018-01-02T00:00:00</submitted>
<examiner>yegor257</examiner>
<text>Hello</text>
<personality>ESFJ-T</personality>
<stackoverflow>236546</stackoverflow>
<telegram>yegor257</telegram>
</resume>
</resumes>
27 changes: 27 additions & 0 deletions xml/pmo/resumes/-invalid-personality.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<text>I'm great</text>
<personality>INTJ</personality>
<stackoverflow>187141</stackoverflow>
<telegram>yegor256</telegram>
</resume>
</resumes>
26 changes: 26 additions & 0 deletions xml/pmo/resumes/-no-personality.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<text>I'm great</text>
<stackoverflow>187141</stackoverflow>
<telegram>yegor256</telegram>
</resume>
</resumes>
26 changes: 26 additions & 0 deletions xml/pmo/resumes/-no-so.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<text>I'm great</text>
<personality>INTJ-A</personality>
<telegram>yegor256</telegram>
</resume>
</resumes>
26 changes: 26 additions & 0 deletions xml/pmo/resumes/-no-telegram.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<text>I'm great</text>
<personality>INTJ-A</personality>
<stackoverflow>187141</stackoverflow>
</resume>
</resumes>
26 changes: 26 additions & 0 deletions xml/pmo/resumes/-no-text.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<personality>INTJ-A</personality>
<stackoverflow>187141</stackoverflow>
<telegram>yegor256</telegram>
</resume>
</resumes>
26 changes: 26 additions & 0 deletions xml/pmo/resumes/-no-time.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<examiner>g4s8</examiner>
<text>I'm great</text>
<personality>INTJ-A</personality>
<stackoverflow>187141</stackoverflow>
<telegram>yegor256</telegram>
</resume>
</resumes>
27 changes: 27 additions & 0 deletions xml/pmo/resumes/simple.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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.
-->
<resumes version="1" updated="2016-12-29T09:03:21.684Z">
<resume login="yegor256">
<submitted>2018-01-01T00:00:00</submitted>
<examiner>g4s8</examiner>
<text>I'm great</text>
<personality>INTJ-A</personality>
<stackoverflow>187141</stackoverflow>
<telegram>yegor256</telegram>
</resume>
</resumes>
47 changes: 47 additions & 0 deletions xsd/pmo/resumes.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?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:include schemaLocation="http://datum.zerocracy.com/SNAPSHOT/xsd/pm/staff/types.xsd"/>
<xs:complexType name="resume">
<xs:all>
<xs:element name="submitted" type="xs:dateTime"/>
<xs:element name="examiner" type="login" minOccurs="0"/>
<xs:element name="text" type="xs:string"/>
<xs:element name="personality" type="personality"/>
<xs:element name="stackoverflow" type="xs:integer"/>
<xs:element name="telegram" type="xs:string"/>
</xs:all>
<xs:attribute name="login" type="login"/>
</xs:complexType>
<xs:element name="resumes">
<xs:complexType>
<xs:sequence>
<xs:element name="resume" type="resume" 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="uniqueLogin">
<xs:selector xpath="resume"/>
<xs:field xpath="@login"/>
</xs:unique>
</xs:element>
</xs:schema>
5 changes: 5 additions & 0 deletions xsd/pmo/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ SOFTWARE.
<xs:pattern value="[a-z]{1,16}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="personality">
<xs:restriction base="xs:string">
<xs:pattern value="[IE][NS][TF][PJ]-[AT]"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
101 changes: 101 additions & 0 deletions xsl/pmo/resumes.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?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="2.0">
<xsl:include href="../templates.xsl"/>
<xsl:template match="/">
<html lang="en">
<body>
<section>
<h1>People</h1>
<xsl:apply-templates select="resumes"/>
</section>
</body>
</html>
</xsl:template>
<xsl:template match="resume">
<p>
<xsl:text>Resumes:</xsl:text>
</p>
<table data-sortable="true">
<thead>
<tr>
<th>
<xsl:text>Login</xsl:text>
</th>
<th>
<xsl:text>Submitted</xsl:text>
</th>
<th>
<xsl:text>Examiner</xsl:text>
</th>
<th>
<xsl:text>Text</xsl:text>
</th>
<th>
<xsl:text>Stackoverflow</xsl:text>
</th>
<th>
<xsl:text>Telegram</xsl:text>
</th>
</tr>
</thead>
<tbody>
<xsl:apply-templates select="resume"/>
</tbody>
</table>
</xsl:template>
<xsl:template match="resume">
<tr>
<td>
<xsl:call-template name="user">
<xsl:with-param name="id" select="@login"/>
</xsl:call-template>
</td>
<td>
<xsl:call-template name="date">
<xsl:with-param name="iso" select="submitted"/>
</xsl:call-template>
</td>
<td>
<xsl:value-of select="text"/>
</td>
<td>
<xsl:choose>
<xsl:when test="examiner">
<xsl:call-template name="user">
<xsl:with-param name="id" select="examiner"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:text>—</xsl:text>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:call-template name="stackoverflow">
<xsl:with-param name="id" select="stackoverflow"/>
</xsl:call-template>
</td>
<td>
<xsl:call-template name="telegram">
<xsl:with-param name="id" select="telegram"/>
</xsl:call-template>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
Loading