web/xsl fresco-docbook-html.xsl,NONE,1.1 tutorial.css,1.2,1.3
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/web/xsl
In directory purcel:/tmp/cvs-serv17585/xsl
Modified Files:
tutorial.css
Added Files:
fresco-docbook-html.xsl
Log Message:
build the fresco tutorial as part of the website
--- NEW FILE: fresco-docbook-html.xsl ---
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<!-- xsl:import href="titlepage.xsl"/ -->
<xsl:import href="/org/fresco.org/share/docbook/html/docbook.xsl"/>
<!-- CSS Stylesheet -->
<xsl:param name="html.stylesheet" select="'default.css'" />
<xsl:param name="callout.graphics" select="'0'"/>
<xsl:param name="bibliography.collection" select="'/org/fresco.org/share/bibliography.xml'"/>
<xsl:template name="logo">
<table width='100%' class='blueBack' border='0' summary='Our top banner for logo and short-links to popular items.' cellpadding='0' cellspacing='0'>
<tr class='blueBack'>
<td class='blueBack' width='150' align='center'>
<img border='0' height='1' src='glyphs/blank_dot.png' width='150' alt=''/>
</td>
<td class='blueBack' width='100%' align='left'>
<img border='0' height='1' src='glyphs/blank_dot.png' width='1' alt=''/>
</td>
</tr>
<tr class='blueBack'>
<td class='blueBack' align='center'>
<a href='index.html'><img border='0' height='56' src='glyphs/f_l.png' width='95' alt='Fresco logo'/></a>
</td>
<td class='blueBack' align='left'>
<a href='index.html'><img border='0' height='46' src='glyphs/f_t.png' width='309' alt='Fresco title'/></a>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="bookinfo/title" mode="titlepage.mode">
<xsl:variable name="id">
<xsl:choose>
<!-- if title is in an *info wrapper, get the grandparent -->
<xsl:when test="contains(local-name(..), 'info')">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="../.."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="object.id">
<xsl:with-param name="object" select=".."/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="logo"/>
<h1 class="{name(.)}">
<a name="{$id}"/>
<xsl:choose>
<xsl:when test="$show.revisionflag and @revisionflag">
<span class="{@revisionflag}">
<xsl:apply-templates mode="titlepage.mode"/>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="titlepage.mode"/>
</xsl:otherwise>
</xsl:choose>
</h1>
</xsl:template>
<xsl:template match="sect1">
<div class="{name(.)}">
<xsl:call-template name="sect1.titlepage"/>
<a href="http://wiki.fresco.org/index.cgi/tutorial-{title}">comment this section</a>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="(contains($toc.params, 'toc')
and $generate.section.toc.level >= 1)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<xsl:apply-templates/>
<xsl:call-template name="process.chunk.footnotes"/>
</div>
</xsl:template>
<xsl:template match="section">
<xsl:variable name="depth" select="count(ancestor::section)+1"/>
<div class="{name(.)}">
<xsl:call-template name="section.titlepage"/>
<a href="">here comes a link</a>
<xsl:if test="($generate.section.toc != '0'
and $depth <= $generate.section.toc.level)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<xsl:apply-templates/>
<xsl:call-template name="process.chunk.footnotes"/>
</div>
</xsl:template>
</xsl:stylesheet>
Index: tutorial.css
===================================================================
RCS file: /cvs/fresco/web/xsl/tutorial.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tutorial.css 8 Aug 2002 04:15:36 -0000 1.2
+++ tutorial.css 21 Jan 2003 21:06:04 -0000 1.3
@@ -1,4 +1,4 @@
-@import "/default.css";
+@import "../default.css";
.toc
{