Selaa lähdekoodia

remove unused xslt/xml

Daniel Sheffield 1 vuosi sitten
vanhempi
säilyke
95627203b8
1 muutettua tiedostoa jossa 0 lisäystä ja 165 poistoa
  1. 0 165
      xml/pg_view_style.xsl

+ 0 - 165
xml/pg_view_style.xsl

@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-Copyright (c) Daniel Sheffield 2022
-All rights reserved.
--->
-<xsl:stylesheet version="1.0"
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-    xmlns="http://www.w3.org/1999/xhtml"
->
-
-  <xsl:output method="xml"
-      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
-      doctype-public="-//W3C/DTD XHTML 1.0 Strict//EN"
-      indent="yes"/>
-
-  <xsl:template match="/*">
-    <xsl:variable name="schema" select="//xsd:schema"/>
-    <xsl:variable name="tabletypename"
-                  select="$schema/xsd:element[@name=name(current())]/@type"/>
-    <xsl:variable name="rowtypename"
-                  select="$schema/xsd:complexType[@name=$tabletypename]/xsd:sequence/xsd:element[@name='row']/@type"/>
-
-    <html>
-      <head>
-        <title>
-        <xsl:choose>
-          <xsl:when test="$tabletypename = 'TableType.pgdb.public.pg_random_view_default_if_null'">
-          Random Prayer Generator
-          </xsl:when>
-          <xsl:when test="$tabletypename = 'TableType.pgdb.public.pg_view'">
-          Prayer Generator
-          </xsl:when>
-          <xsl:otherwise>
-          <xsl:value-of select="$tabletypename"/>
-          </xsl:otherwise>
-        </xsl:choose>
-        </title>
-        <meta>
-        <xsl:attribute name="name">title</xsl:attribute>
-        <xsl:attribute name="content">
-        <xsl:choose>
-          <xsl:when test="$tabletypename = 'TableType.pgdb.public.pg_random_view_default_if_null'">Random Prayer Generator</xsl:when>
-          <xsl:when test="$tabletypename = 'TableType.pgdb.public.pg_view'">Prayer Generator</xsl:when>
-          <xsl:otherwise>
-          <xsl:value-of select="$tabletypename"/>
-          </xsl:otherwise>
-        </xsl:choose>
-        </xsl:attribute>
-        </meta>
-	<meta name="description" content="Generate a template prayer following the form of the model prayer outlined in Matthew 6:9‑13 and Luke 11:2‑4"/>
-	<meta name="keywords" content="Bible, Prayer, Generator, SWORD"/>
-	<meta name="author" content="Daniel Sheffield"/>
-	<meta name="viewport" content="width=device-width, initial-scale=1"/>
-	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
-	<link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>
-	<link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
-        <style>
-span.engraved {
-    color: #A8A8A8;
-    font-size: 0.8em;
-    text-shadow: 0px 0.1em 0px rgba(168,168,168,.1), 0px -0.1em 0px rgba(0,0,0,.7);
-    float: right;
-}
-	</style>
-      </head>
-      <body>
-        <div style="background: darkgray; position: sticky; top: 0; margin: 0; padding: 0; width: 100%; z-index: 1; text-align: center;">
-        <form action="random">
-          <button type="submit" style="margin: 0.2em">Generate</button>
-          <span style="position: absolute; right: 0; padding: 0.4em">
-          <a>
-          <xsl:attribute name="href">./pg?<xsl:for-each select="//row"><xsl:value-of select="category"/>=<xsl:value-of select="translate(reference,' ','')"/>+<xsl:value-of select="translation"/><xsl:if test="position() != last()">&#038;</xsl:if></xsl:for-each></xsl:attribute>
-          Permalink
-          </a>
-          </span>
-	</form>
-        </div>
-        <div style="position: relative; max-width: 68em; min-width: min(100%, 68em); left: 50%; transform: translate(max(-50%, -34em),0)">
-        <table class="pure-table pure-table-bordered pure-table-striped">
-          <tr style="text-transform: capitalize">
-            <xsl:for-each select="$schema/xsd:complexType[@name=$rowtypename]/xsd:sequence/xsd:element/@name">
-                <xsl:variable name="elementtype"
-                              select="."/>
-                <xsl:choose>
-                <xsl:when test="$elementtype = 'txt'">
-              <th class="opt-all">Text</th>
-                </xsl:when>
-                <xsl:when test="$elementtype = 'category'">
-              <th class="opt-all">Section</th>
-                </xsl:when>
-                <xsl:when test="$elementtype = 'translation'">
-              <th class="opt-md opt-lg opt-xl opt-xxl">Reference</th>
-                </xsl:when>
-                <xsl:otherwise>
-                </xsl:otherwise>
-                </xsl:choose>
-            </xsl:for-each>
-          </tr>
-
-          <xsl:for-each select="row">
-            <tr>
-              <xsl:for-each select="*">
-                <xsl:variable name="elementtype"
-                              select="name(current())"/>
-                <xsl:choose>
-                <xsl:when test="$elementtype = 'txt'">
-                <td class="opt-all" style="text-align: justify"><xsl:value-of select="."/>&#160;<span class="engraved">
-                <xsl:value-of select="../translation"/>
-                </span>
-                </td>
-                </xsl:when>
-                <xsl:when test="$elementtype = 'category'">
-                  <xsl:choose>
-                  <xsl:when test="contains(.,'z_')">
-                  <td class="opt-all" rowspan="2" style="text-transform: capitalize;">Kingdom</td>
-                  </xsl:when>
-                  <xsl:when test="contains(.,'a_')">
-                  </xsl:when>
-		  <xsl:otherwise>
-                  <td class="opt-all" style="text-transform: capitalize;"><xsl:value-of select="."/></td>
-                  </xsl:otherwise>
-                  </xsl:choose>
-                </xsl:when>
-                <xsl:when test="$elementtype = 'translation'">
-                </xsl:when>
-                <xsl:otherwise>
-                  <td class="opt-md opt-lg opt-xl opt-xxl">
-                  <xsl:value-of select="translate(translate(.,' ','&#160;'),'-','&#8209;')"/>
-                  <br/>
-                  <a>
-                  <xsl:attribute name="href">/license/<xsl:value-of select="preceding-sibling::translation"/>.txt</xsl:attribute>
-                  <xsl:value-of select="preceding-sibling::translation"/>
-                  </a>
-                  </td>
-                </xsl:otherwise>
-                </xsl:choose>
-              </xsl:for-each>
-            </tr>
-          </xsl:for-each>
-        <tfoot style="line-height: 1.4">
-        <tr>
-          <td colspan="3">
-          Copyright (c) Daniel Sheffield 2022. All right reserved.
-          <br/>
-          Powered <a href="https://www.crosswire.org/jsword/">JSword</a> an implementation of <a href="https://www.crosswire.org/sword/index.jsp">The SWORD Project</a>'s SWORD API brought to you by the <a href="https://crosswire.org">The CrossWire Bible Society</a>.
-          <br/>
-          Quotes are taken from various translations as indicated. See 
-          <xsl:for-each select="//row/translation[not(.=preceding::*)]">
-          <a>
-          <xsl:attribute name="href">/license/<xsl:value-of select="."/>.txt</xsl:attribute>
-          <xsl:value-of select="."/>
-          </a>,
-          </xsl:for-each>
-          for the license and copyright information of each respective work.
-          </td>
-        </tr>
-        </tfoot>
-        </table>
-        </div>
-      </body>
-    </html>
-  </xsl:template>
-
-</xsl:stylesheet>