|
From: <mba...@us...> - 2006-12-27 12:15:41
|
Revision: 1734
http://svn.sourceforge.net/rubyeclipse/?rev=1734&view=rev
Author: mbarchfe
Date: 2006-12-27 04:15:37 -0800 (Wed, 27 Dec 2006)
Log Message:
-----------
modified eclipse.xsl writes MANIFEST.MF and plugin.xml. plugin.xml therefore does not need to be checked in anymore, but MANIFEST.MF must be checked in since the build process needs it before it is generated.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml
Added Paths:
-----------
trunk/org.rubypeople.rdt.doc.user/docbook/modified_eclipse.xsl
trunk/org.rubypeople.rdt.doc.user/plugin.properties
Removed Paths:
-------------
trunk/org.rubypeople.rdt.doc.user/plugin.xml
Property Changed:
----------------
trunk/org.rubypeople.rdt.doc.user/
Property changes on: trunk/org.rubypeople.rdt.doc.user
___________________________________________________________________
Name: svn:ignore
- bin
org.rubypeople.rdt.doc.user_*.zip
build.xml
plugin.xml
html
docbook.done
toc.xml
customizationLayerCopy.xsl
+ bin
org.rubypeople.rdt.doc.user_*.zip
build.xml
plugin.xml
html
docbook.done
toc.xml
customizationLayerCopy.xsl
Modified: trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml
===================================================================
--- trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml 2006-12-22 21:38:51 UTC (rev 1733)
+++ trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml 2006-12-27 12:15:37 UTC (rev 1734)
@@ -16,6 +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="docbook/modified_eclipse.xsl" tofile="${docbook.xsl.dir}/eclipse/eclipse.xsl"/>
</target>
<target name="init" depends="docbook.unpack">
@@ -55,8 +56,8 @@
<param name="base.dir" expression="html/"/>
<param name="manifest.in.base.dir" expression="0"/>
<param name="eclipse.plugin.id" expression="org.rubypeople.rdt.doc.user"/>
- <param name="eclipse.plugin.name" expression="Ruby Development Documentation"/>
- <param name="eclipse.plugin.provider" expression="RubyPeople, Inc."/>
+ <param name="eclipse.plugin.name" expression="%Plugin.name"/>
+ <param name="eclipse.plugin.provider" expression="%providerName"/>
<xmlcatalog id="docbook.catalog">
<dtd publicId="-//OASIS//DTD DocBook V3.1//EN" location="${docbook.dtd.dir}/docbookx.dtd"/>
</xmlcatalog>
Added: trunk/org.rubypeople.rdt.doc.user/docbook/modified_eclipse.xsl
===================================================================
--- trunk/org.rubypeople.rdt.doc.user/docbook/modified_eclipse.xsl (rev 0)
+++ trunk/org.rubypeople.rdt.doc.user/docbook/modified_eclipse.xsl 2006-12-27 12:15:37 UTC (rev 1734)
@@ -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: 0.0.0
+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>
Added: trunk/org.rubypeople.rdt.doc.user/plugin.properties
===================================================================
--- trunk/org.rubypeople.rdt.doc.user/plugin.properties (rev 0)
+++ trunk/org.rubypeople.rdt.doc.user/plugin.properties 2006-12-27 12:15:37 UTC (rev 1734)
@@ -0,0 +1,7 @@
+#########################################
+# (c) Copyright RubyPeople, Inc. 2006
+# All Rights Reserved.
+#########################################
+
+Plugin.name=Ruby Development Tools User Documentation
+providerName=RubyPeople, Inc.
\ No newline at end of file
Deleted: trunk/org.rubypeople.rdt.doc.user/plugin.xml
===================================================================
--- trunk/org.rubypeople.rdt.doc.user/plugin.xml 2006-12-22 21:38:51 UTC (rev 1733)
+++ trunk/org.rubypeople.rdt.doc.user/plugin.xml 2006-12-27 12:15:37 UTC (rev 1734)
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
-<!-- ============================================================================= -->
-<!-- Define primary TOC -->
-<!-- ============================================================================= -->
-
- <extension point="org.eclipse.help.toc">
- <toc file="toc.xml" primary="true" />
- </extension>
-
-</plugin>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|