Commit 5c5fbe87 authored by Wendell Piez's avatar Wendell Piez

More documentation

parent 8263cf26
......@@ -8,6 +8,8 @@
exclude-result-prefixes="#all">
<!-- XSweet: After everything, certain efficiencies can still be 'squeezed' out of presentational HTML markup as emitted raw. So, some final normalizations can be made opportunistically. -->
<!-- Removes redundant tagging from HTML based on @style analysis, element type e.g. redundant b, i, u etc. -->
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
......
......@@ -2,7 +2,9 @@
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Requests a tool use HTML5 serialization rules. -->
<!-- XSweet: This XSLT has settings for using HTML 5 serialization rules in a 3.0-conformant processor with no overriding settings. -->
<xsl:output method="html" html-version="5" indent="no" include-content-type="no"/>
<!-- Otherwise, just copies. -->
......
......@@ -2,6 +2,8 @@
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- XSweet: This XSLT has settings for using XHTML serialization rules (including a DOCTYPE declaration). -->
<!-- Requests a tool use HTML5 serialization rules. -->
<xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
......
......@@ -9,6 +9,10 @@
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
<!-- XSweet: picks up URI substrings and renders them as (HTML) anchors with (purported or matched) links -->
<!-- Input: HTML Typescript or relatively clean HTML or XML. -->
<!-- Output: A copy, except that URIs now appear as live links (`a` elements). -->
<xsl:template match="* | @* | processing-instruction() | comment()">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
......
#### hyperlink-inferencer.xsl
XSLT stylesheet version 3.0 (2 templates)
XSweet: picks up URI substrings and renders them as (HTML) anchors with (purported or matched) links
Input: HTML Typescript or relatively clean HTML or XML.
Output: A copy, except that URIs now appear as live links (`a` elements).
#### ucp-fixup.xsl
XSLT stylesheet version 2.0 (2 templates)
XSweet: A demo of an "ad hoc" filter for a particular workflow or process.
Input: HTML Typescript
Output: A copy, with modifications.
#### zorba-map.xsl
XSLT stylesheet version 2.0 (3 templates)
XSweet: A demo of an "ad hoc" filter for a particular workflow or process - this time, tuned particularly for a particular usage profile.
Input: HTML Typescript
Output: A copy, with modifications.
\ No newline at end of file
......@@ -9,6 +9,10 @@
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
<!-- XSweet: A demo of an "ad hoc" filter for a particular workflow or process. -->
<!-- Input: HTML Typescript -->
<!-- Output: A copy, with modifications. -->
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
......
......@@ -9,6 +9,10 @@
<xsl:output method="xml" indent="no" omit-xml-declaration="yes"/>
<!-- XSweet: A demo of an "ad hoc" filter for a particular workflow or process - this time, tuned particularly for a particular usage profile. -->
<!-- Input: HTML Typescript -->
<!-- Output: A copy, with modifications. -->
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
......
......@@ -9,6 +9,11 @@
xpath-default-namespace="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="#all">
<!-- XSweet: Digests into a single-file "report" format an HTML file, to show its output (result structures) for diagnostics. -->
<!-- Input: An HTML file probably "HTML Typescript" in spirit (i.e. the fairly cleanish output of an XSweet extraction pipeline).-->
<!-- Output: An HTML file (open in a plain-ordinary browser) documenting a 'structural synopsis' of the HTML as given. -->
<!-- Note: For diagnostic purposes, this is rude but useful. Also could be extended and polished for better results. -->
<!-- Produces an HTML report describing (HTML) inputs. -->
<xsl:template match="/">
......
#### html-analysis.xsl
XSLT stylesheet version 2.0 (4 templates)
XSweet: Digests into a single-file "report" format an HTML file, to show its output (result structures) for diagnostics.
Input: An HTML file probably "HTML Typescript" in spirit (i.e. the fairly cleanish output of an XSweet extraction pipeline).
Output: An HTML file (open in a plain-ordinary browser) documenting a 'structural synopsis' of the HTML as given.
Note: For diagnostic purposes, this is rude but useful. Also could be extended and polished for better results.
\ No newline at end of file
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