Using XSLT with Text Documents
A beginner's tutorial
by
Lance Jenott
Center for Advanced Research Techonology in the Arts and Humanities (CARTAH)
University of Washington
2005
Table of Contents
1 -
Text Documents and XML tags
2 -
How to display the entire document using a XSLT script
3 - Displaying Text
3.1 -
How to display one line of text using
<xsl:value-of>
3.2 -
How to display multiple lines of text using
<xsl:for-each>
4 -
Attributes
5 - Decision making
5.1 -
Decision making with
<xsl:if>
5.2 -
Decision making with
<xsl:choose>, <xsl:when> and <xsl:otherwise>
6 -
Sorting text with
<xsl:sort>
XSLT Functions:
7 -
The
count()
function
8 -
The
contains()
function
9 -
The
starts-with()
function
10 -
The
substring()
function
11 -
The
substring-before()
function
12 -
The
substring-after()
function
13 -
The
string-length()
function
14 -
The
translate()
function
15 -
The
concat()
function
16 -
The
string()
function
Other:
17 -
String Replacement
18 -
Interactive Client-side transformations using Javascript
19 -
Interactive Server-side transformations using PHP5