cvs: php-gtk /docs/stylesheets/xsl html-common.xsl /docs/stylesheets/xsl/html chunk-common.xsl chunk.xsl

From: Date: Sun, 18 Mar 2001 18:23:23 +0000
Subject: cvs: php-gtk /docs/stylesheets/xsl html-common.xsl /docs/stylesheets/xsl/html chunk-common.xsl chunk.xsl
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-984@lists.php.net to get a copy of this message
jmoore Sun Mar 18 10:23:23 2001 EDT Modified files: /php-gtk/docs/stylesheets/xsl html-common.xsl /php-gtk/docs/stylesheets/xsl/html chunk-common.xsl chunk.xsl Log: The Return of the Toc.. Index: php-gtk/docs/stylesheets/xsl/html-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html-common.xsl:1.1 php-gtk/docs/stylesheets/xsl/html-common.xsl:1.2 --- php-gtk/docs/stylesheets/xsl/html-common.xsl:1.1 Wed Mar 14 10:31:53 2001 +++ php-gtk/docs/stylesheets/xsl/html-common.xsl Sun Mar 18 10:23:23 2001 @@ -2,13 +2,13 @@ Implements HTML Specific Stylesheets - $Id: html-common.xsl,v 1.1 2001/03/14 18:31:53 jmoore Exp $ + $Id: html-common.xsl,v 1.2 2001/03/18 18:23:23 jmoore Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:template match="authorgroup" mode="book.titlepage.recto.mode"> + <xsl:template match="authorgroup" mode="titlepage.mode"> <h3> <xsl:call-template name="authorgroup-title"> <xsl:with-param name="id"> @@ -16,17 +16,17 @@ </xsl:with-param> </xsl:call-template> </h3> - <xsl:apply-templates mode="book.titlepage.recto.mode" /> + <xsl:apply-templates mode="titlepage.mode" /> </xsl:template> - <xsl:template match="author" mode="book.titlepage.recto.mode"> + <xsl:template match="author" mode="titlepage.mode"> <div xsl:use-attribute-sets="book.titlepage.recto.style"> <xsl:call-template name="editor-author-text" /> </div> </xsl:template> - <xsl:template match="author/contrib" mode="book.titlepage.recto.mode"> - <xsl:text> : </xsl:text><xsl:apply-templates mode="book.title.recto.mode" /> + <xsl:template match="author/contrib" mode="titlepage.mode"> + <xsl:text> : </xsl:text><xsl:apply-templates mode="titlepage.mode" /> </xsl:template> <xsl:template name="editor-author-text" > @@ -34,12 +34,12 @@ <xsl:attribute name="HREF"> <xsl:call-template name="author-email-link" /> </xsl:attribute> - <xsl:apply-templates select="honorific|firstname|othername|surname|lineage" mode="book.titlepage.recto.mode" /> + <xsl:apply-templates select="honorific|firstname|othername|surname|lineage" mode="titlepage.mode" /> </xsl:element> - <xsl:apply-templates select="affiliation|authorblurb|contrib" mode="book.titlepage.recto.mode" /> + <xsl:apply-templates select="affiliation|authorblurb|contrib" mode="titlepage.mode" /> </xsl:template> - <xsl:template match="editor" mode="book.titlepage.recto.mode"> + <xsl:template match="editor" mode="titlepage.mode"> <div xsl:use-attribute-sets="book.titlepage.recto.style"> <xsl:element name="h4"> <xsl:attribute name="class">editedby</xsl:attribute> @@ -54,10 +54,10 @@ </div> </xsl:template> - <xsl:template match="firstname" mode="book.titlepage.recto.mode"> + <xsl:template match="firstname" mode="titlepage.mode"> <xsl:value-of select="." /><xsl:text> </xsl:text><xsl:value-of select="following-sibling::surname" /> </xsl:template> - <xsl:template match="surname" mode="book.titlepage.recto.mode" /> + <xsl:template match="surname" mode="titlepage.mode" /> </xsl:stylesheet> Index: php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.2 php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.3 --- php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl:1.2 Sun Mar 18 07:40:51 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk-common.xsl Sun Mar 18 10:23:23 2001 @@ -1,49 +1,10 @@ <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" + xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" + xmlns:lxslt="http://xml.apache.org/xslt" version="1.0" - exclude-result-prefixes="doc" extension-element-prefixes="saxon xalanredirect lxslt"> -<xsl:output method="html" - encoding="ISO-8859-1" - indent="no"/> - -<doc:param name="base.dir" xmlns=""> -<refpurpose>Output directory for chunks</refpurpose> -<refdescription> -<para>If specified, the <literal>base.dir</literal> identifies -the output directory for chunks. (If not specified, the output directory -is system dependent.)</para> -</refdescription> -</doc:param> - -<!-- ==================================================================== --> -<!-- What's a chunk? - - appendix - article - bibliography in article or book - book - chapter - colophon - glossary in article or book - index in article or book - part - preface - refentry - reference - sect1 if position()>1 - section if position()>1 && parent != section - set - setindex - classset - classentry - --> -<!-- ==================================================================== --> - <xsl:template name="chunk"> <xsl:param name="node" select="."/> <!-- returns 1 if $node is a chunk --> @@ -284,50 +245,9 @@ </xsl:template> <!-- ==================================================================== --> - -<xsl:template match="/"> - <xsl:choose> - <xsl:when test="$rootid != ''"> - <xsl:choose> - <xsl:when test="count(id($rootid)) = 0"> - <xsl:message terminate="yes"> - <xsl:text>ID '</xsl:text> - <xsl:value-of select="$rootid"/> - <xsl:text>' not found in document.</xsl:text> - </xsl:message> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="id($rootid)"/> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> -<xsl:template match="set|book|part|preface|chapter|appendix - |article - |classset|classentry - |reference|refentry - |sect1[position()>1] - |section[position()>1 and name(parent::*) != 'section'] - |book/glossary|article/glossary - |book/bibliography|article/bibliography - |colophon"> +<xsl:template match="classset|classentry"> <xsl:call-template name="process-chunk-element"/> -</xsl:template> - -<xsl:template match="setindex - |book/index - |article/index"> - <!-- some implementations use completely empty index tags to indicate --> - <!-- where an automatically generated index should be inserted. so --> - <!-- if the index is completely empty, skip it. --> - <xsl:if test="count(*)>0"> - <xsl:call-template name="process-chunk-element"/> - </xsl:if> </xsl:template> <!-- ==================================================================== --> Index: php-gtk/docs/stylesheets/xsl/html/chunk.xsl diff -u php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.3 php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.4 --- php-gtk/docs/stylesheets/xsl/html/chunk.xsl:1.3 Sun Mar 18 10:03:00 2001 +++ php-gtk/docs/stylesheets/xsl/html/chunk.xsl Sun Mar 18 10:23:23 2001 @@ -1,11 +1,5 @@ <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"> + version="1.0"> <xsl:include href="chunk-common.xsl"/> <xsl:include href="title.xsl"/>

« previous php.gtk (#984) next »