Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/delibero.git

Updated hypothesis page.

AuthorDave Jarvis <email>
Date2014-07-25 10:46:06 GMT-0700
Commit41d0e6de26ff493df82a10471fc56ecd50890851
Parent0b30b7b
xml/common.css
}
+.paragraph {
+ line-height: 120%;
+}
+
+.title {
+ font-family: 'Montserrat', Helvetica, sans-serif;
+ font-size: 2em;
+ font-weight: bold;
+ padding-bottom: 0.2em;
+}
+
xml/common.xsl.html
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<title>~/htdocs/dave/world-politics/xml/common.xsl.html</title>
+<meta name="Generator" content="Vim/7.4">
+<meta name="plugin-version" content="vim7.4_v1">
+<meta name="syntax" content="xml">
+<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">
+<meta name="colorscheme" content="none">
+<style type="text/css">
+<!--
+pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffff; }
+body { font-family: monospace; color: #000000; background-color: #ffffff; }
+* { font-size: 1em; }
+.Special { color: #c000c0; }
+.Comment { color: #0000c0; }
+.Constant { color: #c00000; }
+.Identifier { color: #008080; }
+.Statement { color: #af5f00; }
+.Type { color: #008000; }
+-->
+</style>
+
+<script type='text/javascript'>
+<!--
+
+-->
+</script>
+</head>
+<body>
+<pre id='vimCodeElement'>
+<span class="Comment">&lt;?</span><span class="Type">xml</span><span class="Type"> </span><span class="Type">version</span>=<span class="Constant">&quot;1.0&quot;</span><span class="Type"> </span><span class="Type">encoding</span>=<span class="Constant">&quot;UTF-8&quot;</span><span class="Comment">?&gt;</span>
+<span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">stylesheet</span><span class="Identifier"> </span><span class="Type">version</span>=<span class="Constant">&quot;1.0&quot;</span><span class="Identifier"> </span><span class="Type">xmlns</span><span class="Comment">:</span><span class="Type">xsl</span>=<span class="Constant">&quot;<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>&quot;</span><span class="Identifier">&gt;</span>
+
+<span class="Comment">&lt;!</span><span class="Comment">-- Action parser that responds to HTTP requests. --</span><span class="Comment">&gt;</span>
+<span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">param</span><span class="Identifier"> </span><span class="Type">name</span>=<span class="Constant">&quot;action&quot;</span><span class="Identifier"> </span><span class="Type">select</span>=<span class="Constant">&quot;'do.dhtml'&quot;</span><span class="Identifier"> /&gt;</span>
+
+<span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier"> </span><span class="Type">match</span>=<span class="Constant">&quot;/&quot;</span><span class="Identifier">&gt;</span>
+<span class="Identifier">&lt;</span><span class="Identifier">html</span><span class="Identifier"> </span><span class="Type">language</span>=<span class="Constant">&quot;en&quot;</span><span class="Identifier">&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">head</span><span class="Identifier">&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">meta</span><span class="Identifier"> </span><span class="Type">charset</span>=<span class="Constant">&quot;utf-8&quot;</span><span class="Identifier"> /&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">title</span><span class="Identifier">&gt;</span>World Policies: rational, moderated, transparent discussion<span class="Identifier">&lt;/title&gt;</span>
+
+ <span class="Identifier">&lt;</span><span class="Identifier">link</span><span class="Identifier"> </span><span class="Type">rel</span>=<span class="Constant">&quot;stylesheet&quot;</span><span class="Identifier"> </span><span class="Type">type</span>=<span class="Constant">&quot;text/css&quot;</span><span class="Identifier"> </span><span class="Type">href</span>=<span class="Constant">&quot;common.css&quot;</span><span class="Identifier"> /&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">link</span><span class="Identifier"> </span><span class="Type">rel</span>=<span class="Constant">&quot;stylesheet&quot;</span><span class="Identifier"> </span><span class="Type">type</span>=<span class="Constant">&quot;text/css&quot;</span><span class="Identifier"> </span><span class="Type">href</span>=<span class="Constant">&quot;{child::node()/@style}.css&quot;</span><span class="Identifier"> /&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">link</span><span class="Identifier"> </span><span class="Type">rel</span>=<span class="Constant">&quot;stylesheet&quot;</span><span class="Identifier"> </span><span class="Type">type</span>=<span class="Constant">&quot;text/css&quot;</span><span class="Identifier"> </span><span class="Type">href</span>=<span class="Constant">&quot;//fonts.googleapis.com/css?family=Open+Sans&quot;</span><span class="Identifier"> /&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">link</span><span class="Identifier"> </span><span class="Type">rel</span>=<span class="Constant">&quot;stylesheet&quot;</span><span class="Identifier"> </span><span class="Type">type</span>=<span class="Constant">&quot;text/css&quot;</span><span class="Identifier"> </span><span class="Type">href</span>=<span class="Constant">&quot;//fonts.googleapis.com/css?family=Montserrat&quot;</span><span class="Identifier"> /&gt;</span>
+ <span class="Identifier">&lt;/head&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">body</span><span class="Identifier">&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">apply-templates</span><span class="Identifier"> /&gt;</span>
+ <span class="Identifier">&lt;/body&gt;</span>
+<span class="Identifier">&lt;/html&gt;</span>
+<span class="Identifier">&lt;/</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier">&gt;</span>
+
+<span class="Comment">&lt;!</span><span class="Comment">-- Make the document complete with div elements and classes. --</span><span class="Comment">&gt;</span>
+<span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier"> </span><span class="Type">match</span>=<span class="Constant">&quot;*&quot;</span><span class="Identifier">&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">div</span><span class="Identifier"> </span><span class="Type">class</span>=<span class="Constant">&quot;{local-name()}&quot;</span><span class="Identifier">&gt;&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">apply-templates</span><span class="Identifier"> </span><span class="Type">select</span>=<span class="Constant">&quot;node()|@*&quot;</span><span class="Identifier">/&gt;</span><span class="Identifier">&lt;/div&gt;</span>
+<span class="Identifier">&lt;/</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier">&gt;</span>
+
+<span class="Comment">&lt;!</span><span class="Comment">-- The 'id' attribute indicates a link. --</span><span class="Comment">&gt;</span>
+<span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier"> </span><span class="Type">match</span>=<span class="Constant">&quot;*[@id]&quot;</span><span class="Identifier">&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Identifier">div</span><span class="Identifier"> </span><span class="Type">class</span>=<span class="Constant">&quot;{local-name()}&quot;</span><span class="Identifier">&gt;&lt;</span><span class="Identifier">a</span><span class="Identifier"> </span><span class="Type">href</span>=<span class="Constant">&quot;{$action}?action={local-name()}</span><span class="Type">&amp;</span><span class="Statement">amp</span><span class="Type">;</span><span class="Constant">id={@id}&quot;</span><span class="Identifier">&gt;&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">apply-templates</span><span class="Identifier"> </span><span class="Type">select</span>=<span class="Constant">&quot;node()|*&quot;</span><span class="Identifier"> /&gt;</span><span class="Identifier">&lt;/a&gt;&lt;/div&gt;</span>
+<span class="Identifier">&lt;/</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier">&gt;</span>
+
+<span class="Comment">&lt;!</span><span class="Comment">-- Retain the attributes (except if named &quot;class&quot;). --</span><span class="Comment">&gt;</span>
+<span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier"> </span><span class="Type">match</span>=<span class="Constant">&quot;@*&quot;</span><span class="Identifier">&gt;</span>
+ <span class="Identifier">&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">if</span><span class="Identifier"> </span><span class="Type">test</span>=<span class="Constant">&quot;name() != 'class'&quot;</span><span class="Identifier">&gt;&lt;</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">copy-of</span><span class="Identifier"> </span><span class="Type">select</span>=<span class="Constant">&quot;.&quot;</span><span class="Identifier">/&gt;</span><span class="Identifier">&lt;/</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">if</span><span class="Identifier">&gt;</span>
+<span class="Identifier">&lt;/</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">template</span><span class="Identifier">&gt;</span>
+
+<span class="Identifier">&lt;/</span><span class="Special">xsl</span><span class="Comment">:</span><span class="Statement">stylesheet</span><span class="Identifier">&gt;</span>
+
+</pre>
+</body>
+</html>
+<!-- vim: set foldmethod=manual : -->
xml/discuss.css
.title {
- font-size: 2em;
- padding-bottom: 0.2em;
border-bottom: 1px solid black;
}
-.title, .implications::before {
+.implications::before {
+ font-size: 1.1em;
font-family: 'Montserrat', Helvetica, sans-serif;
font-weight: bold;
-}
+ text-align: middle;
-.implications::before {
content: "Discussion";
- font-size: 1.1em;
- text-align: middle;
}
xml/hypothesis.css
+.policy {
+ padding-bottom: 0.5em;
+ border-bottom: 1px solid black;
+}
+
+.policy, .title {
+ border-bottom: 1px solid black;
+}
+
+.paragraph {
+ margin-bottom: 0.5em;
+}
+
+.hypotheses > .general::before {
+ content: "General Hypothesis";
+}
+
+.hypotheses > .directional::before {
+ content: "Directional Hypothesis";
+}
+
+.hypotheses > .measurable::before {
+ content: "Measurable Hypothesis";
+}
+
+.hypotheses > *::before {
+ font-family: 'Montserrat', Helvetica, sans-serif;
+ font-size: 1.2em;
+ font-weight: bold;
+}
+
+.hypotheses > * > .paragraph {
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
+}
+
+a {
+ text-decoration: none;
+ color: #46A5E5;
+}
+
+.xref {
+ display: inline;
+}
+
+.related {
+ display: flex;
+ justify-content: flex-end;
+
+ padding-top: 0.5em;
+ width: 100%;
+}
+
+.related > div {
+ display: inline;
+ color: #333;
+}
+
+.related > div > a {
+ padding-right: 5px;
+ color: #46A5E5;
+}
+
+.edit { order: 1; }
+.discuss { order: 2; }
+.flag { order: 3; }
+
+.discuss::after, .edit::after {
+ content: "|";
+ padding-right: 3px;
+}
+
+.discuss > a::before { content: "discuss"; }
+.edit > a::before { content: "edit"; }
+.flag > a::before { content: "flag"; }
+
+
xml/hypothesis.xml
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
+<policy style="hypothesis">
+ <summary>
+ <title>Digital Freedom Act</title>
+ </summary>
+ <hypotheses>
+ <overview>
+ <paragraph>
+ Freedom is the power or right, to act, speak, or think as one wants
+ without hindrance or restraint. Freedom is the absence of subjection
+ to foreign domination or despotic government. Freedom means people
+ may choose their own actions in an environment that nurtures the full
+ development of human potential. By enacting and enforcing this
+ policy, several positive societal outcomes should be observed.
+ </paragraph>
+ </overview>
+ <general>
+ <paragraph>
+ The freedom experienced by world citizens is ranked by
+ various indices, including: <xref id="1">Economic Freedom
+ of the World Index</xref>, <xref id="2">Index of Freedom in the
+ World</xref>, <xref id="3">Worldwide Press Freedom Index</xref>, the
+ <xref id="4">Democracy Index</xref>, <xref id="5">Freedom in the
+ World Report</xref>, <xref id="6">Index of Economic Freedom</xref>,
+ <xref id="7">CIRI Human Rights Data Project</xref>, and the
+ Transparency International <xref id="8">Corruption Perceptions
+ Index</xref>.
+ </paragraph>
+ </general>
+ <directional>
+ <paragraph>
+ Nations that empower their citizens with the most freedoms rank
+ the highest in various indices; nations that restrict citizen
+ freedoms the most rank lowest. More freedom is correlated with
+ higher earnings, increased happiness, protected civil rights,
+ cleaner environments, less corruption, lower infant mortality rates,
+ less child labour, and longer life expectancy.
+ </paragraph>
+ </directional>
+ <measurable>
+ <paragraph>
+ If a nation's citizens' freedom to private communications is
+ restricted (through surveillance or policy), then that country's
+ average rank across the given indices will decrease.
+ </paragraph>
+ </measurable>
+ </hypotheses>
+ <related>
+ <discuss id="1" />
+ <edit id="1" />
+ <flag id="1" />
+ </related>
+</policy>
+
xml/index.css
}
+.title {
+ font-size: 1em;
+ font-weight: normal;
+}
+
.title, .tags {
padding-left: 10px;
xml/summary.css
}
-.paragraph, .implications > .implication {
+.implications > .implication {
line-height: 120%;
-}
-
-.title {
- font-family: 'Montserrat', Helvetica, sans-serif;
- font-size: 2em;
- font-weight: bold;
- padding-bottom: 0.2em;
}
xml/support.css
}
-.title, .implications::before {
+.implications::before {
font-family: 'Montserrat', Helvetica, sans-serif;
font-weight: bold;
}
.title {
- font-size: 2em;
- padding-bottom: 0.2em;
border-bottom: 1px solid black;
}
xml/support.xml
</paragraph>
<paragraph>
+ In June of 2014, two staff members of a Scarborough hospital were
+ reportedly paid by external companies to <xref id="0">leak</xref> the
+ contact information for 8,300 patients. The contact information
+ included the patient name, phone number, and address. The patients
+ were primarily women who became mothers between 2009 and 2013. The data
+ was delivered to RESP investment companies, but it could just as
+ easily be transferred to people who intimidate or blackmail.
+ </paragraph>
+ <paragraph>
Chinese hackers <xref id="3">breached</xref> Google's servers in 2010,
seeking to identify accounts that had been tagged for surveillance by
xml/xsl.pdf
Binary files differ
Delta238 lines added, 18 lines removed, 220-line increase