Last active
August 29, 2015 14:20
-
-
Save atbradley/f8308302759cc1ebdf28 to your computer and use it in GitHub Desktop.
Alter two SVG US maps for use in the Hall-Hoag catalog project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="windows-1252"?> | |
<xsl:stylesheet xmlns="http://www.w3.org/2000/svg" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:exsl="http://exslt.org/common" | |
extension-element-prefixes="exsl" | |
version="1.0"> | |
<xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml-declaration="yes" /> | |
<xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyzàèìòùáéíóúýâêîôûãñõäëïöüÿåæœçðø'" /> | |
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÈÌÒÙÁÉÍÓÚÝÂÊÎÔÛÃÑÕÄËÏÖÜŸÅÆŒÇÐØ'" /> | |
<xsl:variable name="st"> | |
<state abbr='AL'>Alabama</state> | |
<state abbr='AK'>Alaska</state> | |
<state abbr='AZ'>Arizona</state> | |
<state abbr='AR'>Arkansas</state> | |
<state abbr='CA'>California</state> | |
<state abbr='CO'>Colorado</state> | |
<state abbr='CT'>Connecticut</state> | |
<state abbr='DE'>Delaware</state> | |
<state abbr='FL'>Florida</state> | |
<state abbr='GA'>Georgia</state> | |
<state abbr='HI'>Hawaii</state> | |
<state abbr='ID'>Idaho</state> | |
<state abbr='IL'>Illinois</state> | |
<state abbr='IN'>Indiana</state> | |
<state abbr='IA'>Iowa</state> | |
<state abbr='KS'>Kansas</state> | |
<state abbr='KY'>Kentucky</state> | |
<state abbr='LA'>Louisiana</state> | |
<state abbr='ME'>Maine</state> | |
<state abbr='MD'>Maryland</state> | |
<state abbr='MA'>Massachusetts</state> | |
<state abbr='MI'>Michigan</state> | |
<state abbr='MN'>Minnesota</state> | |
<state abbr='MS'>Mississippi</state> | |
<state abbr='MO'>Missouri</state> | |
<state abbr='MT'>Montana</state> | |
<state abbr='NE'>Nebraska</state> | |
<state abbr='NV'>Nevada</state> | |
<state abbr='NH'>New Hampshire</state> | |
<state abbr='NJ'>New Jersey</state> | |
<state abbr='NM'>New Mexico</state> | |
<state abbr='NY'>New York</state> | |
<state abbr='NC'>North Carolina</state> | |
<state abbr='ND'>North Dakota</state> | |
<state abbr='OH'>Ohio</state> | |
<state abbr='OK'>Oklahoma</state> | |
<state abbr='OR'>Oregon</state> | |
<state abbr='PA'>Pennsylvania</state> | |
<state abbr='RI'>Rhode Island</state> | |
<state abbr='SC'>South Carolina</state> | |
<state abbr='SD'>South Dakota</state> | |
<state abbr='TN'>Tennessee</state> | |
<state abbr='TX'>Texas</state> | |
<state abbr='UT'>Utah</state> | |
<state abbr='VT'>Vermont</state> | |
<state abbr='VA'>Virginia</state> | |
<state abbr='WA'>Washington</state> | |
<state abbr='WV'>West Virginia</state> | |
<state abbr='WI'>Wisconsin</state> | |
<state abbr='WY'>Wyoming</state> | |
<state abbr='AS'>American Samoa</state> | |
<state abbr='DC'>District of Columbia</state> | |
<state abbr='FM'>Federated States of Micronesia</state> | |
<state abbr='GU'>Guam</state> | |
<state abbr='MH'>Marshall Islands</state> | |
<state abbr='MP'>Northern Mariana Islands</state> | |
<state abbr='PW'>Palau</state> | |
<state abbr='PR'>Puerto Rico</state> | |
<state abbr='VI'>Virgin Islands</state> | |
<state abbr='AE'>Armed Forces Africa</state> | |
<state abbr='AA'>Armed Forces Americas</state> | |
<state abbr='AE'>Armed Forces Canada</state> | |
<state abbr='AE'>Armed Forces Europe</state> | |
<state abbr='AE'>Armed Forces Middle East</state> | |
<state abbr='AP'>Armed Forces Pacific</state> | |
</xsl:variable> | |
<xsl:variable name="states" select="exsl:node-set($st)"/> | |
<xsl:variable name="state_dropshadow_filter"> | |
<filter id="dropshadow" height="130%"> | |
<feGaussianBlur in="SourceAlpha" stdDeviation="5"/> | |
<!--feOffset dx="0" dy="0" result="offsetblur"/--> | |
<feMerge> | |
<feMergeNode/> | |
<feMergeNode in="SourceGraphic"/> | |
</feMerge> | |
</filter> | |
</xsl:variable> | |
<xsl:variable name="county_dropshadow_filter"> | |
<filter id="dropshadow"> | |
<feGaussianBlur result="blurOut" in="SourceColour" stdDeviation=".4" /> | |
<feColorMatrix result="matrixOut" in="blurOut" type="matrix" | |
values="0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.2 0 0 0 0 0 1 0" /> | |
<feBlend in="SourceGraphic" in2="matrixOut" mode="normal" /> | |
</filter> | |
</xsl:variable> | |
</xsl:stylesheet> |
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment