cvs: php-gtk /docs/stylesheets/xsl/html chunk.xsl label.xsl title.xsl
| From: | James Moore | Date: | Sun, 18 Mar 2001 15:54:47 +0000 |
| Subject: | cvs: php-gtk /docs/stylesheets/xsl/html chunk.xsl label.xsl title.xsl | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-982@lists.php.net to get a copy of this message | ||
jmoore Sun Mar 18 07:54:47 2001 EDT
Added files:
/php-gtk/docs/stylesheets/xsl/html label.xsl title.xsl
Modified files:
/php-gtk/docs/stylesheets/xsl/html chunk.xsl
Log:
Override a few methods to give nice titles and labels
Index: php-gtk/docs/stylesheets/xsl/html/chunk.xsl
diff -u php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.1
php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.2
--- php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.1 Sun Mar 18 06:59:56 2001
+++ php-gtk/docs/stylesheets/xsl/html/chunk.xsl Sun Mar 18 07:54:47 2001
@@ -8,7 +8,8 @@
extension-element-prefixes="saxon xalanredirect lxslt">
<xsl:include href="chunk-common.xsl"/>
-
+<xsl:include href="title.xsl"/>
+<xsl:include href="label.xsl"/>
<!-- ==================================================================== -->
Index: php-gtk/docs/stylesheets/xsl/html/label.xsl
+++ php-gtk/docs/stylesheets/xsl/html/label.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
version="1.0"
exclude-result-prefixes="doc"
extension-element-prefixes="saxon xalanredirect lxslt">
<xsl:template match="classset" mode="label.content">
<xsl:param name="punct">.</xsl:param>
<xsl:choose>
<xsl:when test="@label">
<xsl:value-of select="@label"/>
<xsl:value-of select="$punct"/>
</xsl:when>
<xsl:when test="$part.autolabel != 0">
<xsl:number from="book" count="classset" format="I"
level="any"/>
<xsl:value-of select="$punct"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="classentry" mode="label.content">
<xsl:param name="punct">.</xsl:param>
<xsl:if test="@label">
<xsl:value-of select="@label"/>
<xsl:value-of select="$punct"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Index: php-gtk/docs/stylesheets/xsl/html/title.xsl
+++ php-gtk/docs/stylesheets/xsl/html/title.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://icl.com/saxon"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
version="1.0"
exclude-result-prefixes="doc"
extension-element-prefixes="saxon xalanredirect lxslt">
<xsl:template match="title|classtitle|classsettitle" mode="title.content">
<xsl:param name="text-only" select="'0'"/>
<xsl:param name="allow-anchors" select="'0'"/>
<xsl:choose>
<xsl:when test="$text-only != 0">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$allow-anchors != 0">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="no.anchor.mode"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="classset" mode="title.content">
<xsl:param name="text-only" select="'0'"/>
<xsl:param name="allow-anchors" select="'0'"/>
<xsl:apply-templates select="(./classsetmeta/classsettitle)[1]"
mode="title.content">
<xsl:with-param name="text-only" select="$text-only"/>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="classentry" mode="title.content">
<xsl:param name="text-only" select="'0'"/>
<xsl:param name="allow-anchors" select="'0'"/>
<xsl:apply-templates select="(./classmeta/classtitle)[1]"
mode="title.content">
<xsl:with-param name="text-only" select="$text-only"/>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
</xsl:template>
</xsl:stylesheet>