Dave Jarvis' Repositories

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

Started resources example.

AuthorDave Jarvis <email>
Date2014-07-29 11:56:20 GMT-0700
Commit3bd8c9ae5deb40bc6105dc8b13eb4498e3237433
Parent354c041
xml/common.xsl
<head>
<meta charset="utf-8" />
- <title>World Policies: rational, moderated, transparent discussion</title>
+ <title>World Policies: rational, moderated, transparent deliberation</title>
<link rel="stylesheet" type="text/css" href="common.css" />
- <link rel="stylesheet" type="text/css" href="{child::node()/@style}.css" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Montserrat" />
+ <script type="text/javascript">
+var file = location.pathname.split( "/" ).pop();
+var link = document.createElement( "link" );
+
+link.href = file.substr( 0, file.lastIndexOf( "." ) ) + ".css";
+link.type = "text/css";
+link.rel = "stylesheet";
+link.media = "all";
+
+document.getElementsByTagName( "head" )[0].appendChild( link );
+ </script>
</head>
<body>
xml/discuss.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
-<policy style="discuss">
+<policy>
<summary>
<title>Digital Freedom Act</title>
xml/hypothesis.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
-<policy style="hypothesis">
+<policy>
<summary>
<title>Digital Freedom Act</title>
xml/index.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
-<policies style="index">
+<policies>
<policy>
<summary>
xml/proposal.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
-<policy style="proposal">
+<policy>
<summary>
<title>Digital Freedom Act</title>
xml/resources.css
+@import url( "edit-discuss-flag.css" );
+@import url( "xref.css" );
+
+.policy {
+ padding-bottom: 0.5em;
+ border-bottom: 1px solid black;
+}
+
+.title {
+ border-bottom: 1px solid black;
+}
+
+.paragraph {
+ padding-top: 0.5em;
+ line-height: 120%;
+}
+
xml/resources.xml
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
+<policy>
+ <summary>
+ <title>Digital Freedom Act</title>
+ </summary>
+ <resources>
+
+ </resources>
+ <related>
+ <discuss id="1" />
+ <edit id="1" />
+ <flag id="1" />
+ </related>
+</policy>
+
xml/summary.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
-<policy style="summary">
+<policy>
<summary>
<title>Digital Freedom Act</title>
xml/support.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="common.xsl" ?>
-<policy style="support">
+<policy>
<summary>
<title>Digital Freedom Act</title>
Delta51 lines added, 8 lines removed, 43-line increase