From: <caw...@us...> - 2007-03-30 15:04:32
|
Revision: 2248 http://svn.sourceforge.net/rubyeclipse/?rev=2248&view=rev Author: cawilliams Date: 2007-03-30 08:04:30 -0700 (Fri, 30 Mar 2007) Log Message: ----------- Modified Paths: -------------- trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml Added Paths: ----------- trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/eclipse.xsl Removed Paths: ------------- trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/modified_eclipse.xsl Modified: trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml =================================================================== --- trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml 2007-03-30 15:04:05 UTC (rev 2247) +++ trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml 2007-03-30 15:04:30 UTC (rev 2248) @@ -16,7 +16,7 @@ <move file="docbook/docbook-xsl-${docbook.xsl.version}" tofile="${docbook.xsl.dir}" /> <mkdir dir="${docbook.dtd.dir}"/> <unzip src="docbook/docbook-xml-4.2.zip" dest="${docbook.dtd.dir}"/> - <copy file="modifications/eclipse/modified_eclipse.xsl" tofile="${docbook.xsl.dir}/eclipse/eclipse.xsl"/> + <copy file="modifications/eclipse/eclipse.xsl" tofile="${docbook.xsl.dir}/eclipse/eclipse.xsl"/> <copy file="modifications/html/param.ent" tofile="${docbook.xsl.dir}/html/param.ent"/> <copy file="modifications/html/param.xml" tofile="${docbook.xsl.dir}/html/param.xml"/> <copy file="modifications/html/param.xsl" tofile="${docbook.xsl.dir}/html/param.xsl"/> Copied: trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/eclipse.xsl (from rev 2247, trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/modified_eclipse.xsl) =================================================================== --- trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/eclipse.xsl (rev 0) +++ trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/eclipse.xsl 2007-03-30 15:04:30 UTC (rev 2248) @@ -0,0 +1,190 @@ +<?xml version="1.0"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0"> + +<xsl:import href="../html/chunk.xsl"/> + +<!-- ******************************************************************** + $Id: eclipse.xsl,v 1.3 2005/04/10 18:09:50 bobstayton Exp $ + ******************************************************************** + + This file is part of the XSL DocBook Stylesheet distribution. + See ../README or http://nwalsh.com/docbook/xsl/ for copyright + and other information. + + ******************************************************************** --> + +<xsl:template match="/"> + <xsl:choose> + <xsl:when test="$rootid != ''"> + <xsl:choose> + <xsl:when test="count(key('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:if test="$collect.xref.targets = 'yes' or + $collect.xref.targets = 'only'"> + <xsl:apply-templates select="key('id', $rootid)" + mode="collect.targets"/> + </xsl:if> + <xsl:if test="$collect.xref.targets != 'only'"> + <xsl:message>Formatting from <xsl:value-of + select="$rootid"/></xsl:message> + <xsl:apply-templates select="key('id',$rootid)" + mode="process.root"/> + <xsl:call-template name="etoc"/> + <xsl:call-template name="plugin.xml"/> + <xsl:call-template name="manifest.mf"/> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:if test="$collect.xref.targets = 'yes' or + $collect.xref.targets = 'only'"> + <xsl:apply-templates select="/" mode="collect.targets"/> + </xsl:if> + <xsl:if test="$collect.xref.targets != 'only'"> + <xsl:apply-templates select="/" mode="process.root"/> + <xsl:call-template name="etoc"/> + <xsl:call-template name="plugin.xml"/> + <xsl:call-template name="manifest.mf"/> + </xsl:if> + </xsl:otherwise> + </xsl:choose> + + +</xsl:template> + +<xsl:template name="etoc"> + <xsl:call-template name="write.chunk"> + <xsl:with-param name="filename"> + <xsl:if test="$manifest.in.base.dir != 0"> + <xsl:value-of select="$base.dir"/> + </xsl:if> + <xsl:value-of select="'toc.xml'"/> + </xsl:with-param> + <xsl:with-param name="method" select="'xml'"/> + <xsl:with-param name="encoding" select="'utf-8'"/> + <xsl:with-param name="indent" select="'yes'"/> + <xsl:with-param name="content"> + <xsl:choose> + + <xsl:when test="$rootid != ''"> + <xsl:variable name="title"> + <xsl:if test="$eclipse.autolabel=1"> + <xsl:variable name="label.markup"> + <xsl:apply-templates select="key('id',$rootid)" mode="label.markup"/> + </xsl:variable> + <xsl:if test="normalize-space($label.markup)"> + <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> + </xsl:if> + </xsl:if> + <xsl:apply-templates select="key('id',$rootid)" mode="title.markup"/> + </xsl:variable> + <xsl:variable name="href"> + <xsl:call-template name="href.target.with.base.dir"> + <xsl:with-param name="object" select="key('id',$rootid)"/> + </xsl:call-template> + </xsl:variable> + + <toc label="{$title}" topic="{$href}"> + <xsl:apply-templates select="key('id',$rootid)/*" mode="etoc"/> + </toc> + </xsl:when> + + <xsl:otherwise> + <xsl:variable name="title"> + <xsl:if test="$eclipse.autolabel=1"> + <xsl:variable name="label.markup"> + <xsl:apply-templates select="/*" mode="label.markup"/> + </xsl:variable> + <xsl:if test="normalize-space($label.markup)"> + <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> + </xsl:if> + </xsl:if> + <xsl:apply-templates select="/*" mode="title.markup"/> + </xsl:variable> + <xsl:variable name="href"> + <xsl:call-template name="href.target.with.base.dir"> + <xsl:with-param name="object" select="/"/> + </xsl:call-template> + </xsl:variable> + + <toc label="{$title}" topic="{$href}"> + <xsl:apply-templates select="/*/*" mode="etoc"/> + </toc> + </xsl:otherwise> + + </xsl:choose> + </xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template match="book|part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"> + <xsl:variable name="title"> + <xsl:if test="$eclipse.autolabel=1"> + <xsl:variable name="label.markup"> + <xsl:apply-templates select="." mode="label.markup"/> + </xsl:variable> + <xsl:if test="normalize-space($label.markup)"> + <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> + </xsl:if> + </xsl:if> + <xsl:apply-templates select="." mode="title.markup"/> + </xsl:variable> + + <xsl:variable name="href"> + <xsl:call-template name="href.target.with.base.dir"/> + </xsl:variable> + + <topic label="{$title}" href="{$href}"> + <xsl:apply-templates select="part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"/> + </topic> + +</xsl:template> + +<xsl:template match="text()" mode="etoc"/> + +<xsl:template name="plugin.xml"> + <xsl:call-template name="write.chunk"> + <xsl:with-param name="filename"> + <xsl:if test="$manifest.in.base.dir != 0"> + <xsl:value-of select="$base.dir"/> + </xsl:if> + <xsl:value-of select="'plugin.xml'"/> + </xsl:with-param> + <xsl:with-param name="method" select="'xml'"/> + <xsl:with-param name="encoding" select="'utf-8'"/> + <xsl:with-param name="indent" select="'yes'"/> + <xsl:with-param name="content"><plugin> + <extension point="org.eclipse.help.toc"> + <toc file="toc.xml" primary="true"/> + </extension> +</plugin> + </xsl:with-param> + </xsl:call-template> +</xsl:template> + +<xsl:template name="manifest.mf"> + <xsl:call-template name="write.chunk"> + <xsl:with-param name="filename"> + <xsl:value-of select="'META-INF/MANIFEST.MF'"/> + </xsl:with-param> + <xsl:with-param name="method" select="'text'"/> + <xsl:with-param name="content">Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: <xsl:value-of select="$eclipse.plugin.name"/> +Bundle-SymbolicName: <xsl:value-of select="$eclipse.plugin.id"/>;singleton:=true +Bundle-Version: <xsl:value-of select="$eclipse.plugin.version"/> +Bundle-Vendor: <xsl:value-of select="$eclipse.plugin.provider"/> +Bundle-Localization: plugin +Eclipse-LazyStart: true +</xsl:with-param> + </xsl:call-template> +</xsl:template> +</xsl:stylesheet> Deleted: trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/modified_eclipse.xsl =================================================================== --- trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/modified_eclipse.xsl 2007-03-30 15:04:05 UTC (rev 2247) +++ trunk/org.rubypeople.rdt.doc.user/modifications/eclipse/modified_eclipse.xsl 2007-03-30 15:04:30 UTC (rev 2248) @@ -1,190 +0,0 @@ -<?xml version="1.0"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="1.0"> - -<xsl:import href="../html/chunk.xsl"/> - -<!-- ******************************************************************** - $Id: eclipse.xsl,v 1.3 2005/04/10 18:09:50 bobstayton Exp $ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - -<xsl:template match="/"> - <xsl:choose> - <xsl:when test="$rootid != ''"> - <xsl:choose> - <xsl:when test="count(key('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:if test="$collect.xref.targets = 'yes' or - $collect.xref.targets = 'only'"> - <xsl:apply-templates select="key('id', $rootid)" - mode="collect.targets"/> - </xsl:if> - <xsl:if test="$collect.xref.targets != 'only'"> - <xsl:message>Formatting from <xsl:value-of - select="$rootid"/></xsl:message> - <xsl:apply-templates select="key('id',$rootid)" - mode="process.root"/> - <xsl:call-template name="etoc"/> - <xsl:call-template name="plugin.xml"/> - <xsl:call-template name="manifest.mf"/> - </xsl:if> - </xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise> - <xsl:if test="$collect.xref.targets = 'yes' or - $collect.xref.targets = 'only'"> - <xsl:apply-templates select="/" mode="collect.targets"/> - </xsl:if> - <xsl:if test="$collect.xref.targets != 'only'"> - <xsl:apply-templates select="/" mode="process.root"/> - <xsl:call-template name="etoc"/> - <xsl:call-template name="plugin.xml"/> - <xsl:call-template name="manifest.mf"/> - </xsl:if> - </xsl:otherwise> - </xsl:choose> - - -</xsl:template> - -<xsl:template name="etoc"> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename"> - <xsl:if test="$manifest.in.base.dir != 0"> - <xsl:value-of select="$base.dir"/> - </xsl:if> - <xsl:value-of select="'toc.xml'"/> - </xsl:with-param> - <xsl:with-param name="method" select="'xml'"/> - <xsl:with-param name="encoding" select="'utf-8'"/> - <xsl:with-param name="indent" select="'yes'"/> - <xsl:with-param name="content"> - <xsl:choose> - - <xsl:when test="$rootid != ''"> - <xsl:variable name="title"> - <xsl:if test="$eclipse.autolabel=1"> - <xsl:variable name="label.markup"> - <xsl:apply-templates select="key('id',$rootid)" mode="label.markup"/> - </xsl:variable> - <xsl:if test="normalize-space($label.markup)"> - <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> - </xsl:if> - </xsl:if> - <xsl:apply-templates select="key('id',$rootid)" mode="title.markup"/> - </xsl:variable> - <xsl:variable name="href"> - <xsl:call-template name="href.target.with.base.dir"> - <xsl:with-param name="object" select="key('id',$rootid)"/> - </xsl:call-template> - </xsl:variable> - - <toc label="{$title}" topic="{$href}"> - <xsl:apply-templates select="key('id',$rootid)/*" mode="etoc"/> - </toc> - </xsl:when> - - <xsl:otherwise> - <xsl:variable name="title"> - <xsl:if test="$eclipse.autolabel=1"> - <xsl:variable name="label.markup"> - <xsl:apply-templates select="/*" mode="label.markup"/> - </xsl:variable> - <xsl:if test="normalize-space($label.markup)"> - <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> - </xsl:if> - </xsl:if> - <xsl:apply-templates select="/*" mode="title.markup"/> - </xsl:variable> - <xsl:variable name="href"> - <xsl:call-template name="href.target.with.base.dir"> - <xsl:with-param name="object" select="/"/> - </xsl:call-template> - </xsl:variable> - - <toc label="{$title}" topic="{$href}"> - <xsl:apply-templates select="/*/*" mode="etoc"/> - </toc> - </xsl:otherwise> - - </xsl:choose> - </xsl:with-param> - </xsl:call-template> -</xsl:template> - -<xsl:template match="book|part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"> - <xsl:variable name="title"> - <xsl:if test="$eclipse.autolabel=1"> - <xsl:variable name="label.markup"> - <xsl:apply-templates select="." mode="label.markup"/> - </xsl:variable> - <xsl:if test="normalize-space($label.markup)"> - <xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/> - </xsl:if> - </xsl:if> - <xsl:apply-templates select="." mode="title.markup"/> - </xsl:variable> - - <xsl:variable name="href"> - <xsl:call-template name="href.target.with.base.dir"/> - </xsl:variable> - - <topic label="{$title}" href="{$href}"> - <xsl:apply-templates select="part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"/> - </topic> - -</xsl:template> - -<xsl:template match="text()" mode="etoc"/> - -<xsl:template name="plugin.xml"> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename"> - <xsl:if test="$manifest.in.base.dir != 0"> - <xsl:value-of select="$base.dir"/> - </xsl:if> - <xsl:value-of select="'plugin.xml'"/> - </xsl:with-param> - <xsl:with-param name="method" select="'xml'"/> - <xsl:with-param name="encoding" select="'utf-8'"/> - <xsl:with-param name="indent" select="'yes'"/> - <xsl:with-param name="content"><plugin> - <extension point="org.eclipse.help.toc"> - <toc file="toc.xml" primary="true"/> - </extension> -</plugin> - </xsl:with-param> - </xsl:call-template> -</xsl:template> - -<xsl:template name="manifest.mf"> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename"> - <xsl:value-of select="'META-INF/MANIFEST.MF'"/> - </xsl:with-param> - <xsl:with-param name="method" select="'text'"/> - <xsl:with-param name="content">Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: <xsl:value-of select="$eclipse.plugin.name"/> -Bundle-SymbolicName: <xsl:value-of select="$eclipse.plugin.id"/>;singleton:=true -Bundle-Version: <xsl:value-of select="$eclipse.plugin.version"/> -Bundle-Vendor: <xsl:value-of select="$eclipse.plugin.provider"/> -Bundle-Localization: plugin -Eclipse-LazyStart: true -</xsl:with-param> - </xsl:call-template> -</xsl:template> -</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |