1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<!DOCTYPE webpage SYSTEM "../schema/dtd/website.dtd">
<webpage id="customize">
<config param="desc" value="Customizing the Stylesheets"/>
<config param="rcsdate" value="$Date: 2003/01/16 15:05:46 $"/>
<head>
<title>Customizing the Stylesheets</title>
<titleabbrev>Customization</titleabbrev>
<summary>Stylesheet customization instructions</summary>
</head>
<para>You can customize the stylesheets for your particular website
by making a driver like this:</para>
<programlisting><![CDATA[
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:import href="/path/to/the/website.xsl"/>
<!-- put your customizations here -->
</xsl:stylesheet>]]></programlisting>
<para>If you use the tabular style, you'll discover that the
Website home page has two ugly features: "home.navhead" and
"home.navhead.upperright".</para>
<para>In order to remove these, you have to write a custom stylesheet
that puts the text (or whatever) you want on the homepage in those
locations. Your stylesheet should look like this:</para>
<programlisting><![CDATA[
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:import href="/path/to/the/tabular.xsl"/>
<!-- Replace the text in these templates with whatever you want -->
<!-- to appear in the respective location on the home page. -->
<xsl:template name="home.navhead">
<xsl:text>home.navhead</xsl:text>
</xsl:template>
<xsl:template name="home.navhead.upperright">
<xsl:text>home.navhead.upperright</xsl:text>
</xsl:template>
<!-- put your customizations here -->
</xsl:stylesheet>]]></programlisting>
</webpage>
|