June 2008
Intermediate to advanced
986 pages
27h 8m
English
The first thing we’ll cover is how to put text in the
output. Just putting some text out there is simple enough, but we’ll
look at some more advanced techniques that we’ll explore throughout the
book. We’ll look at two elements in particular: <xsl:text> and <xsl:value-of>. We’ll use these to
create an HTML document that contains a table of contents for an XML
document. Here’s the XML document we’ll use:
<?xml version="1.0"?>
<!-- toc_source.xml -->
<article>
<title>Creating output</title>
<body>
<heading1>Generating text</heading1>
<heading1>Numbering things</heading1>
<heading1>Formatting numbers</heading1>
<heading1>Copying nodes from the input document to the output</heading1>
<heading1>Handling whitespace</heading1>
</body>
</article>Read now
Unlock full access