Target format HTML
Problem regarding Figure 664, “Single source publishing ”:
|
|
<xsl:template match="/book">
<html>
<head> ... </head>
<body>
<h1>
<xsl:value-of select="title"/>
</h1>
</body>
</html>
</xsl:template>
|
|
gets converted to: |
|
|
No. 6
Formatting <book>
instances
Q: |
In Inventing a Start by reading the beginning of the XSLT Tutorial and follow the subsequent steps:
TipFollow the embedded comment hints provided inside the
XSL skeleton. You'll have to define more
|
No. 7
Providing red background indicating foreign phrases
Q: |
Extend the previous exercise by providing highlighting to indicate uses of foreign languages. Let's consider:
The intended output being:
TipYou may want to define two templates like:
Read the documentation regarding the
|
No. 8
Splitting your document into chunks
Q: |
Larger documents have to be split up into separate chunks
avoiding too big single page HTML output.
In our current example each Each chunk will then need a navigation header linking it
to its successor and predecessor. In addition you'll need an
overall TipSplitting documents into chunks is your friend. |