summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2003-07-21 00:45:57 +0000
committerShaun McCance <shaunm@src.gnome.org>2003-07-21 00:45:57 +0000
commit15da4e4d5718ad30e142d246e53c5fc811ce43d4 (patch)
tree612d3bfb63d17292f8bc80735d8a24ef578e3b98
parent6ecf2ccfb03b628063672d6b2d325bfa8bd90b11 (diff)
downloadyelp-15da4e4d5718ad30e142d246e53c5fc811ce43d4.tar.gz
- Remove unused params. - Change toc and title-page filenames on file
* stylesheets/yelp-customization.xsl: - Remove unused params. - Change toc and title-page filenames on file chunking to be the same as the current GDP stylesheets.
-rw-r--r--stylesheets/ChangeLog7
-rw-r--r--stylesheets/yelp-customization.xsl21
-rw-r--r--stylesheets/yelp-functions.xsl2
3 files changed, 25 insertions, 5 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog
index 309bfebb..e07b8d37 100644
--- a/stylesheets/ChangeLog
+++ b/stylesheets/ChangeLog
@@ -1,6 +1,13 @@
2003-07-20 Shaun McCance <shaunm@wolfram.com>
* yelp-customization.xsl:
+ - Remove unused params.
+ - Change toc and title-page filenames on file chunking to be
+ the same as the current GDP stylesheets.
+
+2003-07-20 Shaun McCance <shaunm@wolfram.com>
+
+ * yelp-customization.xsl:
- Support for chunking to files.
- Import current nwalsh xsl. There don't seem to be problems.
- Changed gdb_ [sic] to yelp_.
diff --git a/stylesheets/yelp-customization.xsl b/stylesheets/yelp-customization.xsl
index 6858285c..81df45de 100644
--- a/stylesheets/yelp-customization.xsl
+++ b/stylesheets/yelp-customization.xsl
@@ -1,4 +1,4 @@
-<?xml version='1.0'?><!-- -*- tab-width: 3 -*- -->
+<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:func="http://exslt.org/functions"
xmlns:exsl="http://exslt.org/common"
@@ -12,9 +12,8 @@
<xsl:param name="yelp_docname" />
<xsl:param name="yelp_pathname" />
-<xsl:param name="yelp_rootid" select="''" />
-<xsl:param name="yelp_multichunk" select="0" />
<xsl:param name="yelp_stylesheet_path" select="'No Stylesheet'" />
+
<xsl:param name="yelp_max_chunk_depth" select="2" />
<xsl:param name="yelp_generate_navbar" select="true()"/>
<!-- either 'yelp' or 'exslt' -->
@@ -451,7 +450,21 @@
<xsl:comment> End of chunk </xsl:comment>
</xsl:when>
<xsl:when test="$yelp_chunk_method = 'exslt'">
- <exsl:document href="{concat($id, '.html')}">
+ <xsl:variable name="filename">
+ <xsl:choose>
+ <xsl:when test="$id = 'title-page'">
+ <xsl:text>titlepage.html</xsl:text>
+ </xsl:when>
+ <xsl:when test="$id = 'toc'">
+ <xsl:text>index.html</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$id"/>
+ <xsl:text>.html</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <exsl:document href="{$filename}">
<html>
<head>
<xsl:call-template name="head.content">
diff --git a/stylesheets/yelp-functions.xsl b/stylesheets/yelp-functions.xsl
index 55f0c698..287cbc9b 100644
--- a/stylesheets/yelp-functions.xsl
+++ b/stylesheets/yelp-functions.xsl
@@ -1,4 +1,4 @@
-<?xml version='1.0'?><!-- -*- tab-width: 3 -*- -->
+<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:func="http://exslt.org/functions"
xmlns:yelp="http://www.gnome.org/"