mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2025-08-14 08:45:24 -04:00
updated collection
This commit is contained in:
parent
ffaf033877
commit
57bb8c9cfd
339 changed files with 62850 additions and 44127 deletions
33
xslt/fbi_link_generator.xsl
Normal file
33
xslt/fbi_link_generator.xsl
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
|
||||
xpath-default-namespace="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
exclude-result-prefixes="xs math"
|
||||
version="3.0">
|
||||
|
||||
<!-- <xsl:output method="xhtml" html-version="5" omit-xml-declaration="yes"
|
||||
include-content-type="no" indent="yes"/>-->
|
||||
|
||||
<!-- 2023-04-27 ebb: This is XSLT Stage 1: fixing paragraphs in the XML.
|
||||
It is an XML-to-XML identity transformation, leaving the files intact but adding paragraph markup where it is missing.
|
||||
-->
|
||||
|
||||
<!-- <xsl:variable name="conspiracy" as="document-node()+" select="doc('../docs/fbi-subnetwork.svg')"/>-->
|
||||
|
||||
<xsl:mode on-no-match="shallow-copy"/>
|
||||
<xsl:template match="g[text[.!='North Korea' and .!='FBI']]">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*"/>
|
||||
<a xlink:href="collection/{text}.html#conspiracy" target="conspiracy">
|
||||
|
||||
<xsl:apply-templates/>
|
||||
|
||||
</a>
|
||||
|
||||
</xsl:copy>
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
1301
xslt/fbi_subnetwork_link.svg
Normal file
1301
xslt/fbi_subnetwork_link.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 89 KiB |
|
@ -52,7 +52,7 @@
|
|||
</a>
|
||||
</nav>
|
||||
|
||||
<xsl:apply-templates/>
|
||||
<div id="conspiracy"><xsl:apply-templates/></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
62
xslt/htmlraw_Converter-complete.xsl
Normal file
62
xslt/htmlraw_Converter-complete.xsl
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
exclude-result-prefixes="xs math"
|
||||
version="3.0">
|
||||
|
||||
<xsl:output method="xhtml" html-version="5" omit-xml-declaration="yes" include-content-type="no" indent="yes"/>
|
||||
|
||||
<!-- 2023-04-27 ebb: This is XSLT Stage 2: Outputting HTML for the individual collection files -->
|
||||
<xsl:variable name="conspiracy" as="document-node()+" select="collection('../src-xml')"/>
|
||||
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="$conspiracy">
|
||||
<xsl:variable name="filename" as="xs:string" select="current() ! base-uri() ! tokenize(., '/')[last()] ! substring-before(., '.xml')"/>
|
||||
<xsl:result-document method="xml" indent="yes" href="../docs/collection_raw/{$filename}.html">
|
||||
<html>
|
||||
<head>
|
||||
<title><xsl:value-of select="$filename"/></title>
|
||||
<link rel="stylesheet" href="../CSSstyle.css"/>
|
||||
<!--Fill in your link line for CSS and JS in the XSLT here! -->
|
||||
<xsl:comment>Fill in your link line for CSS and JS in the XSLT here! </xsl:comment>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="title-index"><xsl:value-of select="$filename"/></h1>
|
||||
<div id="conspiracy"><xsl:apply-templates/></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</xsl:result-document>
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="p">
|
||||
<p>
|
||||
<xsl:apply-templates/>
|
||||
</p>
|
||||
</xsl:template>
|
||||
<!-- ebb: adding mouseover tooltip via title attribute-->
|
||||
<xsl:template match="ent">
|
||||
<span class="{@type}" title="{@type}">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
|
||||
<!--ebb: What about the special and info XML tags? -->
|
||||
|
||||
<xsl:template match="special">
|
||||
<span class="special">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
<xsl:template match="info">
|
||||
<span class="info" title="{@type}">
|
||||
<xsl:apply-templates/>
|
||||
</span>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Add a link
Reference in a new issue