Commit ce57b968 authored by Alex Theg's avatar Alex Theg

add deprecated folder; rm scratch section-induce file; update license

parent b59904ad
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsw="http://coko.foundation/xsweet"
xpath-default-namespace="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="#all">
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
<!-- XSweet: an example cleanup transformation. -->
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="span[empty(@class)]">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="@style[.='font-family: Helvetica']"/>
<xsl:template match="text()[matches(.,'^https?:')][string(.) castable as xs:anyURI]">
<a href="{encode-for-uri(.)}">
<xsl:value-of select="."/>
</a>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
Copyright (c) 2017, Aspiration Tech
Copyright (c) 2017, Adam Hyde
MIT License (https://opensource.org/licenses/MIT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment